Hi people,
I have a 64 bit Centos machine. My problem is that I can't run 32 bit
applications on that. I can compile with the 32 bit option my sources, but when
I'm trying to run them I obtain the following error message:
-bash: ./a.out: cannot execute binary file
And the file a.out returns the following:
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Any suggestions what I have to install or any links.
Thanx
s
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.centos.org/pipermail/centos/attachments/20080205/ee62c1fc/attachment-0001.html>
On Tue, 5 Feb 2008, Rozsa Sandor wrote:> Hi people, > > I have a 64 bit Centos machine. My problem is that I can't run 32 bit applications on that. I can compile with the 32 bit option my sources, but when I'm trying to run them I obtain the following error message: > > -bash: ./a.out: cannot execute binary file > And the file a.out returns the following: > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped > > Any suggestions what I have to install or any links.A shot in the dark, but have you tried installing the compat libraries? Maybe something as simple as yum install compat* Scott> > Thanx > > s > > > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Rozsa Sandor wrote:> Hi people, > > I have a 64 bit Centos machine. My problem is that I can't run 32 bit > applications on that. I can compile with the 32 bit option my sources, > but when I'm trying to run them I obtain the following error message: > > -bash: ./a.out: cannot execute binary file > And the file a.out returns the following: > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for > GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux > 2.6.9, not stripped$ ldd ./a.out should list any required .so libraries
----- Original Message ---- From: John R Pierce <pierce at hogranch.com> To: CentOS mailing list <centos at centos.org> Sent: Tuesday, February 5, 2008 6:58:42 PM Subject: Re: [CentOS] 32 bit applications on 64 bit machine Rozsa Sandor wrote:>Hi people,> >I have a 64 bit Centos machine. My problem is that I can't run 32 bit>applications on that. I can compile with the 32 bit option my sources,>but when I'm trying to run them I obtain the following error message:> >-bash: ./a.out: cannot execute binary file>And the file a.out returns the following:>a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for>GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux>2.6.9, not stripped $ ldd ./a.out should list any required .so libraries it says $ ldd ./a.out /usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file not a dynamic executable _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080205/d1f6c240/attachment.html>
Hi,
The command ldd returns
$ ldd ./a.out
/usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file
not a dynamic executable
and
$ ls -l /lib/ld-linux.so.2
lrwxrwxrwx 1 root root 9 Jan 31 16:57 /lib/ld-linux.so.2 -> ld-2.5.so
The compat packages are installed (yum install compat*)
Any suggestion how can I fix this problem.
Thanx
s
----- Original Message ----
From: Rozsa Sandor <rozsa_sandor_gyula at yahoo.com>
To: CentOS mailing list <centos at centos.org>
Sent: Tuesday, February 5, 2008 10:54:17 PM
Subject: Re: [CentOS] 32 bit applications on 64 bit machine
----- Original Message ----
From: John R Pierce <pierce at hogranch.com>
To: CentOS mailing list <centos at centos.org>
Sent: Tuesday, February 5, 2008 6:58:42 PM
Subject: Re: [CentOS] 32 bit applications on 64 bit machine
Rozsa
Sandor
wrote:>
Hi
people,>
>
I
have
a
64
bit
Centos
machine.
My
problem
is
that
I
can't
run
32
bit >
applications
on
that.
I
can
compile
with
the
32
bit
option
my
sources, >
but
when
I'm
trying
to
run
them
I
obtain
the
following
error
message:>
>
-bash:
./a.out:
cannot
execute
binary
file>
And
the
file
a.out
returns
the
following:>
a.out:
ELF
32-bit
LSB
executable,
Intel
80386,
version
1
(SYSV),
for >
GNU/Linux
2.6.9,
dynamically
linked
(uses
shared
libs),
for
GNU/Linux >
2.6.9,
not
stripped
$
ldd
./a.out
should
list
any
required
.so
libraries
it says
$ ldd ./a.out
/usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file
not a dynamic executable
_______________________________________________
CentOS
mailing
list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
-----Inline Attachment Follows-----
_______________________________________________
CentOS
mailing
list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.centos.org/pipermail/centos/attachments/20080207/d0f5d2b4/attachment.html>
On Thu, 7 Feb 2008, Rozsa Sandor wrote:> Hi, > The command ldd returns > $ ldd ./a.out > /usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file > not a dynamic executable > > and > $ ls -l /lib/ld-linux.so.2 > lrwxrwxrwx 1 root root 9 Jan 31 16:57 /lib/ld-linux.so.2 -> ld-2.5.soThis line simply shows a symbolic link to ld-2.5.so in the same (/lib) directory. Does ld-2.5.so actually exist on your system? What does ls -l /lib/ld-2.5.so reveal? Scott> > The compat packages are installed (yum install compat*) > > Any suggestion how can I fix this problem. > > Thanx > > s > > > ----- Original Message ---- > From: Rozsa Sandor <rozsa_sandor_gyula at yahoo.com> > To: CentOS mailing list <centos at centos.org> > Sent: Tuesday, February 5, 2008 10:54:17 PM > Subject: Re: [CentOS] 32 bit applications on 64 bit machine > > > > > ----- Original Message ---- > From: John R Pierce <pierce at hogranch.com> > To: CentOS mailing list <centos at centos.org> > Sent: Tuesday, February 5, 2008 6:58:42 PM > Subject: Re: [CentOS] 32 bit applications on 64 bit machine > > > Rozsa > Sandor > wrote: >> > Hi > people, >> >> > I > have > a > 64 > bit > Centos > machine. > My > problem > is > that > I > can't > run > 32 > bit >> > applications > on > that. > I > can > compile > with > the > 32 > bit > option > my > sources, >> > but > when > I'm > trying > to > run > them > I > obtain > the > following > error > message: >> >> > -bash: > ./a.out: > cannot > execute > binary > file >> > And > the > file > a.out > returns > the > following: >> > a.out: > ELF > 32-bit > LSB > executable, > Intel > 80386, > version > 1 > (SYSV), > for >> > GNU/Linux > 2.6.9, > dynamically > linked > (uses > shared > libs), > for > GNU/Linux >> > 2.6.9, > not > stripped > > > > > $ > ldd > ./a.out > > should > list > any > required > .so > libraries > > it says > $ ldd ./a.out > /usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file > not a dynamic executable > > > _______________________________________________ > CentOS > mailing > list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > > > > > > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > > -----Inline Attachment Follows----- > > _______________________________________________ > CentOS > mailing > list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ >