[conspire] cannot execute binary file

Paul Zander paulz at ieee.org
Wed Aug 31 22:04:37 PDT 2016

I understand that I did not give a comprehensive set of details.  If you have read the postings to the conspire list, you will see that my problem was rather simple.  


      From: Tony Godshall <togo at of.net>
 To: Paul Zander <paulz at ieee.org> 
Cc: Conspire List <conspire at linuxmafia.com>
 Sent: Wednesday, August 31, 2016 11:32 AM
 Subject: Re: [conspire] cannot execute binary file
OK, a more complete example, then.

What arch? [1]
Download the tarball [2]
Check out the tarball [3], notice it is making a *subdirectory* named firefox
Unpack the tarball[4]
Locate the executable[5]
Verify permissions[6], notice it is owned by me and executable by owner
Run the executable explicitly[7]
Make yourself a symlink so you don't have to give it explicit path[8]

details follow

note that I check and verify my assumptions along the way.  the
assumption that seems to be biting you is that $HOME/firefox is an


~$wget --force-directories -p
--2016-08-31 11:14:06--
Resolving ftp.mozilla.org (ftp.mozilla.org)...
Connecting to ftp.mozilla.org (ftp.mozilla.org)||:443...
HTTP request sent, awaiting response... 200 OK
Length: 51622382 (49M) [application/x-tar]
Saving to: ‘ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2’

 49.23M  5.57MB/s    in 10s

2016-08-31 11:14:17 (4.87 MB/s) -
saved [51622382/51622382]

FINISHED --2016-08-31 11:14:17--
Total wall clock time: 11s
Downloaded: 1 files, 49M in 10s (4.87 MB/s)

~$tar tjf ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2

~$tar xjf ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2

~$find firefox/. -type f -name firefox

~/firefox$ls -l ~/firefox/firefox
-rwxr-xr-x 1 tony tony 148256 Jul 25 13:13 /home/tony/firefox/firefox
(Owned by me, executable by owner.)

~$ ./firefox/firefox
~$ cd ~/firefox
~/firefox$ ./firefox

~$ echo $PATH
~$ ln -sf $HOME/firefox/firefox $HOME/bin/.

On Wed, Aug 31, 2016 at 10:37 AM, Paul Zander <paulz at ieee.org> wrote:
> This was buried in my earlier posting.  Having encountered the problem at
> other times that appears to be related to PATH.
> I have a terminal window open to some directory.  Inside that directory is a
> simple script.  And PATH includes places like /usr/bin, but not the current
> directory.
> Typing the following will usually run the script.
>  .  ./myscript
> 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
> What is the cause of my problem?  At this point, it is falls under "Curious
> minds want to know."
> In the case of Firefox, the "fix" was that a recent update to the Debian
> package solved my need to run this download.
> In a different case, the deb package has not been fixed.  I copied the
> executable to /usr/bin and it ran.  I have to remember that I have bypassed
> the package manager which might be a problem in future.
> _______________________________________________
> conspire mailing list
> conspire at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/conspire

Best Regards.
This is unedited.
This message came out of me
via a suboptimal keyboard.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/conspire/attachments/20160901/73c384e9/attachment.html>

More information about the conspire mailing list