LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 01-11-2008, 07:50 AM   #1
SPF
Member
 
Registered: Jul 2007
Location: /home
Distribution: Debian
Posts: 33
Thanked: 0
error while loading shared libraries


[Log in to get rid of this advertisement]
I have the following 2 systems with:
- Red Hat with 2.4.19 kernel
- Suse with 2.6.5-0 kernel

Both have programs compiled with i386 arch:

redhat# file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped

suse# file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

But, Suse doesn't have gcc installed. So I cannot install my favorite programs.
FYI, I'm not allowed to install any rpm's on these systems. I do have root access.
Because both systems use the i386 arch, I tried copying one program (in this case objdump). I already knew I could expect errors:

suse# objdump
objdump: error while loading shared libraries: libopcodes-2.10.91.0.2.so: cannot open shared object file: No such file or directory

Of course I did a search on the forum and I found that there could be a lot of libraries involved.

When I review my problem, the best course of action would be to recompile the program on the Red Hat system and include the libraries in the binary.

But how?
SPF is offline  
Tag This Post , , , , ,
Reply With Quote
Old 01-11-2008, 11:53 AM   #2
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44
Thanked: 0
Try

ldd <path_to_filename/filename>

to obtain info on shared libraries needed. Copy them to /usr/lib or other suitable folder, and then as root execute

ldconfig -v

Word of wisdom:

Anyway, you should not mix shared libraries from different distributions, as they just migh colide with each other. I´m sure that application in question is available as rpm package for Suse. Yast is your friend.
zoranp is offline     Reply With Quote
Old 01-15-2008, 05:48 AM   #3
SPF
Member
 
Registered: Jul 2007
Location: /home
Distribution: Debian
Posts: 33
Thanked: 0

Original Poster
Yast is not installed and I'm not allowed to use it.
SPF is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 04:19 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 06:10 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 9 09-24-2006 03:10 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 09:34 AM


All times are GMT -5. The time now is 02:13 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration