LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2010, 04:22 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
getting error 'cannot execute binary file'


Hi,

I am trying to install a program using 32 bit installer over 32 bit Debian machine. While trying ./installer name getting an error 'cannot execute binary file'.

I checked the library files required
I checked permissions
I checked the JRE
I checked md5sum for the installer
and I checked the size of the file which matches with the file on the website.

Can somebody help regarding this.

Thank you in advance.

Regards,
Venkat
 
Old 04-15-2010, 04:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What does
Code:
file ./installer
ldd ./installer
tell you about it?


Cheers,
Tink
 
Old 04-15-2010, 04:33 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Check that the installer file begin with a "shebang" like this :
Code:
#!/bin/bash
If not, add that as the first line.

Or start the installer this way
Code:
sh installer
 
Old 04-15-2010, 04:49 PM   #4
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
[QUOTE=Tinkster;3936857]What does
Code:
file ./installer
ldd ./installer
tell you about it?


Cheers,
Tink[/QUOTE

here is the output of the commands

$ file ./genespringGX_linux32.bin
./genespringGX_linux32.bin: Bourne shell script text executable
$ ldd ./genespringGX_linux32.bin
not a dynamic executable
$
 
Old 04-15-2010, 04:52 PM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Didier Spaier View Post
Check that the installer file begin with a "shebang" like this :
Code:
#!/bin/bash
If not, add that as the first line.

Or start the installer this way
Code:
sh installer
I am sorry but I could not understand the first part of your answer.

Thank you
 
Old 04-15-2010, 04:53 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by kapilbajpai88 View Post
Quote:
Originally Posted by Tinkster View Post
What does
Code:
file ./installer
ldd ./installer
tell you about it?


Cheers,
Tink
here is the output of the commands

$ file ./genespringGX_linux32.bin
./genespringGX_linux32.bin: Bourne shell script text executable
$ ldd ./genespringGX_linux32.bin
not a dynamic executable
$
In that case Didiers advice should work for you :}

Unless the embedded executable is not "quite right".
 
Old 04-15-2010, 05:06 PM   #7
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Tinkster View Post
In that case Didiers advice should work for you :}

Unless the embedded executable is not "quite right".
Hi Tinkster,

We are not getting the first part of Didier's advice, as we don't know where to check for 'shebang' thing in the installer.

Is there anything else that can be traced so that we can make things working ?

Thakn you.
 
Old 04-15-2010, 05:13 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
See the wikipedia page for "shebang".
 
Old 04-15-2010, 05:13 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
The system should know what to do with the installer.

The fact that the file begin with #!/bin/bash inform the system that this file is a "bash script", that is to say a set of commands to be executed or "interpreted" by the program "bash". Thus it starts "bash", giving it the name of the file to be executed.

When you type "sh genespringGX_linux32.bin" you instruct bash to do the same.

There can be subtle differences between the "sh" and the "bash" programs but that probably doesn't matter in your case.

To make sure, you can open the installer file genespringGX_linux32.bin with a text editor and check that it do begin with a line with #!/bin/bash. (or maybe #!/bin/sh)

Last edited by Didier Spaier; 04-15-2010 at 05:33 PM.
 
Old 04-15-2010, 05:33 PM   #10
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Didier Spaier View Post
The system should know what to do with the installer.

The fact that the file begin with #!/bin/bash inform the system that this file is a "bash script", that is to say a set of commands to be executed or "interpreted" by the program "bash". Thus it starts "bash", giving it the name of the file to be executed.

When you type "sh genespringGX_linux32.bin" you instruct bash to do the same.

There can be subtle differences between the "sh" and the "bash" programs but that probably doesn't matter in your case.

To make sure, you can open the installer file genespringGX_linux32.bin with a text editor and check that it do begin with a line with #!/bin/bash.

Thank you for your reply.
in the bin file(genespringGX_linux32.bin) the first line starts with #!/bin/sh
will this be any problem?
will this
 
Old 04-15-2010, 05:37 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Quote:
Originally Posted by kapilbajpai88 View Post
Thank you for your reply.
in the bin file(genespringGX_linux32.bin) the first line starts with #!/bin/sh
will this be any problem?
Probably not.

Please type :
Code:
sh genespringGX_linux32.bin
and tell us what the outcome is.
 
Old 09-20-2010, 04:35 AM   #12
umeshkr
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
cannot execute binary file
 
Old 09-20-2010, 05:10 AM   #13
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by umeshkr View Post
cannot execute binary file
Are you running this as root? Some installation files require that.
ciao,
jdk
 
Old 09-20-2010, 05:16 AM   #14
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
The last time I had "cannot execute binary file" it had to do with how my drive was mounted in fstab (with the noexec option even with chmod 755).

Modify /etc/fstab and go to where your drive is which is being used. Add the exec option to the fstab entry for the partition which you are attempting to run the executable. If you do not know how to modify your /etc/fstab then run the following commands:
Code:
cat /etc/fstab
ls -lah /dev/disk/by-uuid
df
And post the output of those commands here on LQ. We will be happy to assist you with correctly modifying your fstab file. Also having the full path of the executable which you are trying to run will be a big help so please provide that as well.

You may encounter problems running the second two commands so run them as root or precede them with the sudo command in Ubuntu (e.g. sudo df).

SAM

Last edited by sag47; 09-20-2010 at 05:25 AM.
 
Old 09-20-2010, 06:28 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Posts: 6,780

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Hello,

my bet is that the installer you used, though it has the label "32 bit", in fact includes 64 bit binaries - you wouldn't be the first, as I did find out with Google's help.

I just downloaded GeneSpring GX 11 (32 bit version) from the Agilent technologies website and had no problem installing it on Slackware-13.1, even though this distribution be not officially supported.

Here is the link to the 32 bit version:
http://www.chem.agilent.com/cag/bsp/...GX_linux32.bin

And the link to the download page:
http://www.chem.agilent.com/en-US/Pr...s/gp34727.aspx

When you launch the application for the first time it asks for a license number... I didn't go as far as getting one, just to try an application I don't need

Remember to make the installation as a regular used (not as root), as requested.

Good luck,

PS Don't be fooled by the fact that the installer's file name is the same as yours. It seems that Agilent don't include the installer's version in its name. And don't forget to make that file executable before using it (chmod +x genespringGX_linux32.bin)

Last edited by Didier Spaier; 09-20-2010 at 06:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to run c program , error : cannot execute binary file soni_silver17 Linux - Software 4 03-30-2009 09:45 AM
GCC compilation returns a "cannot execute binary file" error Antongarou Linux - Newbie 13 01-03-2009 08:28 PM
Cannot execute binary file sonia gulrajani Programming 3 11-05-2006 02:30 AM
While installing informix-SE 7.0 it gives error as cannot execute binary file sp2797 Linux - Server 1 09-07-2006 10:56 AM
cannot execute binary file.... ttaylor Linux - General 4 10-02-2001 02:37 AM


All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration