[conspire] cannot execute binary file
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? 
Download the tarball 
Check out the tarball , notice it is making a *subdirectory* named firefox
Unpack the tarball
Locate the executable
Verify permissions, notice it is owned by me and executable by owner
Run the executable explicitly
Make yourself a symlink so you don't have to give it explicit path
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
Resolving ftp.mozilla.org (ftp.mozilla.org)... 184.108.40.206
Connecting to ftp.mozilla.org (ftp.mozilla.org)|220.127.116.11|: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) -
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.)
~$ cd ~/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
> 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
This is unedited.
This message came out of me
via a suboptimal keyboard.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the conspire