LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2012, 02:57 PM   #1
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Rep: Reputation: 0
Trying to run old X game fails ld.so not found


Hi,
I have suse 8.1 pro installed on
an older socket A mobo.

In general the suse works well on
this system.

Anyways I have been trying to get
an old X game to run, it came on
the CD of an old Redhat power tools
disto version 5.1.
It is a runnable bin file,
and I chmod it to be +x.
But when I run it, won't run says
can't find
ld.so
is there some kind of wrapper I
can use to get the game to run.

I have done a file search on my suse,
it found ld.cache file but I don't know
what that is ??

I looked up ld.so it is something
about linker.
But I don't know much about
linkers or compiling, or if the names of things are different on
suse and redhat ??

Some other games from the old redhat CD complain about the same
thing.
They all have the sources also but
doing that type of thing with make,
and makefiles and compiling is
over my head at this point in time.

Any helpful sugestions will be well
helpful, thanks alot.

Last edited by joe.cool@linux; 07-11-2012 at 03:04 PM.
 
Old 07-11-2012, 03:09 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Run the command:

Code:
ldd /path/to/binary
That will show you all libraries or shared objects that the binary is looking for and whether or not it can resolve it. Let us know what the output of that is so we can give you some pointers.
 
Old 07-11-2012, 03:35 PM   #3
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Original Poster
Rep: Reputation: 0
ok here is what showed:

ldd /home/joe/xevil-1.5.bin
: can't load dynamic linker '/lib/ld.so nor /usr/i486-linux/lib/ld.so'
not a dynamic executable
 
Old 07-11-2012, 03:54 PM   #4
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Original Poster
Rep: Reputation: 0
Here is what showed:

ldd /home/joe/xevil-1.5.bin
: can't load dynamic linker '/lib/ld.so nor /usr/i486-linux/lib/ld.so'
not a dynamic executable

what is the ld.cache file on my suse for ?

Last edited by joe.cool@linux; 07-11-2012 at 03:55 PM.
 
Old 07-11-2012, 04:22 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Ok, so you should be able to install glibc package to get the ld.so library.

The ld.cache file is apart of ldconfig, heres a snippet from the man page:

Files

/lib/ld.so

run-time linker/loader

/etc/ld.so.conf

File containing a list of colon, space, tab, newline, or comma-separated directories in which to search for libraries.

/etc/ld.so.cache

File containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found in /lib and /usr/lib.
 
Old 07-11-2012, 04:39 PM   #6
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Original Poster
Rep: Reputation: 0
hmmmm, is there anyway I can verify
if glibc is installed on my suse or not;??
I thought it was installed,
I know the
gcc is installed,
compiled hello world with it.

I thought glibc was somehow part of
the gcc stuff ??

boy ... I am walking slow aren't I, have
to learn about these things before I can
run though right ?

Last edited by joe.cool@linux; 07-11-2012 at 04:47 PM.
 
Old 07-11-2012, 04:49 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
glibc is a huge library of functions.

You can see if this is installed with the rpm command:

rpm -qa | grep glibc

You can then install it with yast or yum. If you have it installed, make sure you have the glibc devel package as well.
 
Old 07-11-2012, 05:05 PM   #8
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Original Poster
Rep: Reputation: 0
ok here is what showed:

rpm -qa | grep glibc
glibc-2.2.5-152
glibc-locale-2.2.5-151
glibc-devel-2.2.5-151
glibc-info-2.2.5-151

the path to my X11 libaries is
/usr/X11R6/include/X11
 
Old 07-11-2012, 05:22 PM   #9
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Try just running a quick :

Code:
ldconfig
as root. That should rebuild your cache file with all of your links and the ld.so file should be apart of that.
 
Old 07-11-2012, 05:35 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Xevil-1.5 is available for some non Linux OS : SGI, Sun etc.

May be you should try the 'file' command : file xevil

This package is for Linux : xevil-1.5-9.i386.rpm
ftp://ftp.pbone.net/mirror/archive.d...1.5-9.i386.rpm


P.S. : Works OK with libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so
from the package libstdc++2.10-2.96-0.83mdk.i586.rpm
ftp://rpmfind.net/linux/Mandriva/off...83mdk.i586.rpm


.

Last edited by knudfl; 07-11-2012 at 05:45 PM.
 
Old 07-12-2012, 04:05 AM   #11
joe.cool@linux
LQ Newbie
 
Registered: Jul 2012
Distribution: Linux running on wood(Suse8.1pro)
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks guys,

I guess my suse 8.1 did not like the bin
file off of the redhat 5.1 power tools CD.
needing the ld.so

I did ldconfig as root but still no
ld.so reference showed up, so ...

I did a file command on that bin it showed
it was indeed Linux i386, but no ELF
(don't know what ELF is ???)

Anyways I did as knudfl suggested and
grabbed that rpm:
xevil-1.5-9.i386.rpm redhat
from the link, and my Konqueror Web browser
ver 3.0.3, automatically asked me if I
wanted to install that rpm package using
Kpackage, I choose yes.

and presto ... I can now play the xevil
1.5-9 version.
I did delete the old xevil bin before I
choose to install the new rpm package.

Once rpm was finished I did a file command
on the 1.5-9 bin version and ELF showed up.

I did file command on my hello world program, ELF shows up there too 32 bit.

Interesting ... btw what is ELF ??

Thanks,
 
Old 07-12-2012, 04:44 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Google .. what is elf file ..
http://en.wikipedia.org/wiki/Executa...inkable_Format




.
 
  


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
latest native game successes and fails? Aut/Geek Linux - Games 3 05-20-2012 10:00 PM
LXer: Linux Game Development: GLIBC_2.4 not found LXer Syndicated Linux News 0 04-17-2008 10:41 PM
killall esd before game. run esd after game. missing gnome sounds. fakie_flip Linux - Games 3 09-30-2006 04:47 AM
Armagetron (game) fails - Segmentation Fault JustOl'Bob Fedora 6 05-11-2005 10:24 AM
getting game etc to run on solaris 9. fiff Solaris / OpenSolaris 2 12-25-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 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