I have downloaded and extracted the Linux binary for the blackbox PDDL planner, and I'm trying to get the blackbox
file to execute. I changed to the directory with the file and tried ./blackbox
, which gave me a permissions error. No big deal, just run chmod 755 blackbox
to give it executable permissions. But then, when I try ./blackbox
again, I get the following error:
bash: ./blackbox: No such file or directory
It does the same when I give the command arguments. When I run ls -l
though, I see the blackbox
file and it has -rwxr-xr-x
permissions, so I'm not sure why it's "losing" the file.
I'm running Ubuntu 14.04 as a dual boot with Windows 7, if that matters.
EDIT: I found a helpful question over on Superuser, which has gotten me partially there. I ran readelf -l ./blackbox | grep ld-linux
to find what I needed, then did a package content search to find out I needed the libc6-i386
package. Now I can do the following:
user@ubuntu:~/path$ ./blackbox
./blackbox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
user@ubuntu:~/path$ ldd blackbox
linux-gate.so.1 => (0xf77af000)
libstdc++.so.6 => not found
libm.so.6 => /lib32/libm.so.6 (0xf774f000)
libgcc_s.so.1 => not found
libc.so.6 => /lib32/libc.so.6 (0xf75a4000)
/lib/ld-linux.so.2 (0xf77b0000)
file blackbox
andldd blackbox
? – steeldriver Apr 23 '15 at 15:47file blackbox
tells me that the executable is 32 bit, andldd blackbox
gives the messagenot a dynamic executable
– wlyles Apr 23 '15 at 17:34ldd
, which I've posted in an edit to the question – wlyles Apr 23 '15 at 18:10