bornpilot Posted September 8, 2018 Share Posted September 8, 2018 What would cause the following dialog to show up when running a binary? : No such file or directory When I run strace against the file I get the following for the execution command. execve("./spyserver", ["./spyserver"], [/* 20 vars */]) = -1 ENOENT (No such file or directory) Link to comment Share on other sites More sharing options...
lanefu Posted September 8, 2018 Share Posted September 8, 2018 1 hour ago, bornpilot said: What would cause the following dialog to show up when running a binary? : No such file or directory When I run strace against the file I get the following for the execution command. execve("./spyserver", ["./spyserver"], [/* 20 vars */]) = -1 ENOENT (No such file or directory) This probably won't be helpful, but I've experience similar error messages when accidentally running ARM64 Golang binaries on arm32 boxes. Link to comment Share on other sites More sharing options...
bornpilot Posted September 8, 2018 Author Share Posted September 8, 2018 Lanefu that's actually helpful. Yes, so the binary file was complied for ARMv7 and my board is ARMv8 however, from the arm documentation there is support for aarch32 for backwards compatibility with ARMv7 applications. Link to comment Share on other sites More sharing options...
chrisf Posted September 9, 2018 Share Posted September 9, 2018 Is there a file called spyserver in the directory you're running the thing in? Link to comment Share on other sites More sharing options...
bornpilot Posted September 9, 2018 Author Share Posted September 9, 2018 Chrisf, yes. I have also put the file in /usr/local/bin/ following the Debian FHS. Link to comment Share on other sites More sharing options...
lanefu Posted September 9, 2018 Share Posted September 9, 2018 21 hours ago, bornpilot said: Lanefu that's actually helpful. Yes, so the binary file was complied for ARMv7 and my board is ARMv8 however, from the arm documentation there is support for aarch32 for backwards compatibility with ARMv7 applications. That is true, but you still need the 32bit libraries for all the supporting dependencies or run a statically linked binary. I usually just run all my 32bit stuff in containers of 32bit flavors of whatever distro on my 64bit arm boards. If that's an option for you, its usually pretty streamlined. Ends up being pretty convenient as I have mixture of boards and it makes it easy to move workloads around. Link to comment Share on other sites More sharing options...
bornpilot Posted September 9, 2018 Author Share Posted September 9, 2018 lanfu, what application are you using for your containers? Docker or something else? Link to comment Share on other sites More sharing options...
lanefu Posted September 9, 2018 Share Posted September 9, 2018 13 minutes ago, bornpilot said: lanfu, what application are you using for your containers? Docker or something else? yep just docker. Try building your container from the `arm32v7/ubuntu` image. and just a pro tip, this command will clean up all your old docker messes `docker system prune -a` Link to comment Share on other sites More sharing options...
bornpilot Posted September 9, 2018 Author Share Posted September 9, 2018 Lanefu, thanks for the tip! Link to comment Share on other sites More sharing options...
Recommended Posts