[conspire] cannot execute binary file

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


Tony,
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.  

Paul


      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
executable

[1]
~$arch
x86_64

[2]
~$wget --force-directories -p
https://ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2
--2016-08-31 11:14:06--
https://ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2
Resolving ftp.mozilla.org (ftp.mozilla.org)... 54.192.116.122
Connecting to ftp.mozilla.org (ftp.mozilla.org)|54.192.116.122|:443...
connected.
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’

ftp.mozilla.org/pub/firefox/releases/45
100%[===============================================================================>]
 49.23M  5.57MB/s    in 10s

2016-08-31 11:14:17 (4.87 MB/s) -
‘ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2’
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)

[3]
~$tar tjf ftp.mozilla.org/pub/firefox/releases/45.3.0esr/linux-x86_64/en-US/firefox-45.3.0esr.tar.bz2
firefox/
firefox/libnss3.so
firefox/platform.ini
firefox/libnspr4.so
...

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

[5]
~$find firefox/. -type f -name firefox
firefox/./firefox

[6]
~/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.)

[7]
~$ ./firefox/firefox
(or)
~$ cd ~/firefox
~/firefox$ ./firefox

[8]
~$ echo $PATH
/home/tony/bin:/usr/local/bin:/usr/bin:/sbin:/bin:/snap/bin
~$ 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