[conspire] cannot execute binary file

Paul Zander paulz at ieee.org
Wed Aug 31 13:04:40 PDT 2016


Unfortunately, I blew away the firefox download, so it is not trivial to repeat the experiment.
However, I had a similar problem with a different named gmsh.  That executable ran fine when I copied it to /usr/bin overwriting the "official" file.  

I would guess the problem is the library or some other auxiliary file that it could not find.
Here is the transcript:
$$ . ./gmsh
bash: .: ./gmsh: cannot execute binary file


$$ ldd ./gmsh
    linux-vdso.so.1 (0x00007fffa7f38000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe34a12a000)
    libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fe349eba000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fe349c49000)
    libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fe349a3f000)
    libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007fe349833000)
    libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fe34962d000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fe34941b000)
    libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2 (0x00007fe349204000)
    libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fe348fc6000)
    libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007fe348dc3000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe348ba5000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe3489a1000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fe34865e000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe348358000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe347fdd000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe347dc7000)
    libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007fe347bbe000)
    libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007fe3479a1000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe347799000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe3473f7000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fe3471cd000)
    libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fe346fca000)
    libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fe346dc6000)
    libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007fe346bb8000)
    libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007fe3469b0000)
    libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007fe3467a5000)
    libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007fe3465a1000)
    libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fe34639a000)
    libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fe346196000)
    libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fe345f68000)
    libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fe345d65000)
    libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fe345b62000)
    libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fe345949000)
    libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fe345744000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fe345521000)
    libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fe34531b000)
    libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fe34510c000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fe344e5c000)
    /lib64/ld-linux-x86-64.so.2 (0x0000563953d6b000)
    libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fe344c57000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fe344a52000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fe34484c000)
    libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fe344625000)


      From: Rick Moen <rick at linuxmafia.com>
 To: conspire at linuxmafia.com 
 Sent: Wednesday, August 31, 2016 11:29 AM
 Subject: Re: [conspire] cannot execute binary file
   
Quoting Paul Zander (paulz at ieee.org):

> But for some more complex stuff, this doesn't always work.  For example, 
> I downloaded a Firefox tarball and unpacked it to some directory.   
> .  ./firefox
>  bash: .: ./firefox: cannot execute binary file

Assuming ./firefox has the executable bit, you might have downloaded the wrong
CPU architecture, e.g., trying to run the IA32 version on an x86_64
distro that lacks 32-bit application support.

Or, could be a missing library.  What's the output of 'ldd ./firefox'?



_______________________________________________
conspire mailing list
conspire at linuxmafia.com
http://linuxmafia.com/mailman/listinfo/conspire


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/conspire/attachments/20160831/8a5aa9e3/attachment.html>


More information about the conspire mailing list