Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot execute binary file on linux

 
Nazneen Shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to install weblogic 8.1 sp3 on linux box. When i try to execute the binary distribution i get an error stating "cannot execute binary file".

The permissions on the file are fine. I tried doing it as root also, but just cant get it.

Any clues, ideas?

Thanking in Advance,
Naz
 
Petr Blahos
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does

say?
P.
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe the file was corrupted during download. See if the website provides an md5sum of the file and then check the md5sum of your download to see if they match.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cannot execute binary file" doesn't look like a message for a corrupted download.

Try

and Petrs tip, and perhaps
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He said the permissions on the file were fine which leads me to think that the binary may be corrupt or he is simply trying to execute a file that isn't meant to be executed. I'd go back and recheck everything, just to be sure.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error may also mean that the binary file was not compiled for your particular platform. Are you really running Linux or is it Solaris, BSD, or something else? If you are sure it's Linux, what distribution are you using?

Layne
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded the file like 5 times and it still will not execute ! Here is my input/output:

[root@localhost downloads]# sh ./j2eesdk-1_4_01_2005Q1-linux.bin
./j2eesdk-1_4_01_2005Q1-linux.bin: ./j2eesdk-1_4_01_2005Q1-linux.bin:
cannot execute binary file
[root@localhost downloads]# chmod +x j2eesdk-1_4_01_2005Q1-linux.bin
[root@localhost downloads]# sh ./j2eesdk-1_4_01_2005Q1-linux.bin
./j2eesdk-1_4_01_2005Q1-linux.bin: ./j2eesdk-1_4_01_2005Q1-linux.bin:
cannot execute binary file
[root@localhost downloads]# ldd ./j2eesdk-1_4_01_2005Q1-linux.bin
libpthread.so.0 => /root/downloads/../lib/libpthread.so.0 (0xb7598000)
libdl.so.2 => /root/downloads/../lib/libdl.so.2 (0xb7595000)
libcrypt.so.1 => /root/downloads/../lib/libcrypt.so.1 (0xb7568000)
libresolv.so.2 => /root/downloads/../lib/libresolv.so.2 (0xb7557000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
(0xb7501000)
libm.so.6 => /root/downloads/../lib/libm.so.6 (0xb74de000)
libc.so.6 => /root/downloads/../lib/libc.so.6 (0xb73aa000)
libgcc_s.so.1 => /root/downloads/../../lib/libgcc_s.so.1 (0xb73a1000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
[root@localhost downloads]#
[ May 12, 2005: Message edited by: Patrick Mallahan ]
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh yea, and I am on Redhat ES3
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to verify this prior to responding, but why are you envoking the Bourne shell interpretor(sh)?

Have you tried the following:
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it gives me a segmentation fault error
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you install the JDK?

Did you use the RPM or the self-extracting binary?
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try installing by using the comman-line interface:

To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option:
./bundle_filename -console

 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using a binary and -console still didnt work.

if i could get an RPM for J2EE i would.
[ May 12, 2005: Message edited by: Patrick Mallahan ]
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this is helpful or not. But I downloaded the same binary file and attempted the install process. It worked fine for me, I aborted the installation process after the Install Wizard GUI appeared(I already have J2SE installed).

By the way, RH9 is my operating system.



So, there must be something not right with your operating system.
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or maybe try installing the packages seperatety.

Do you already have the J2SE installed?

If not install the bundles seperately:
1. J2SE (RPM or self-extract binary)
2. J2EE (self-extract binary)
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Patrick Mallahan:
I downloaded the file like 5 times and it still will not execute ! Here is my input/output:

(...)
[root@localhost downloads]# ldd ./j2eesdk-1_4_01_2005Q1-linux.bin


Fine.
What did 'file j2eesdk-1_4_01_2005Q1-linux.bin' show?

And I like to mention again: I heard so often the advice, to download a second time, and about the probability of corrupt downloads, and from people, downloading multiple times without foreign advice.
And I never heard from a case where it solved a problem.

AFAIK ftp and tcp/ip use checksums to almost guarantee a valid download.
Interrupted downloads leave a 'file.part' instead of 'file' in my download-dir, but of course your programs may differ.

I read about a 'cannot execute binary file' problem, where the kernel didn't supported the (deprecated) a.out format, so if 'file xy' gives you a response like 'a.out binary' instead of 'elf-binary', this could be a hint, but I don't know, whether ldd would have worked, if this file is really of
a.out-format.
 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Last i checked Redhat ES3 was basicaly RH9. But I installed 1.3 and it worked so i dont know what it is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic