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-08-2009, 04:53 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Posts: 174
Thanked: 3
Question how to check shared libraries


[Log in to get rid of this advertisement]
Hi All,

I am using RHEL5 and trying to install a tool through the installer. It is a bin file, and while extracting the installer, I am getting an error :
"awk: error while loading shared libraries: libdl.so.2: cannot open shared object"...
But, I can install all other tools properly, but only for this one particular software, I am facing this problem.
Is there any way that we can manage the shared libraries, or can we check the location of the shared libraries?

Thank You in advance....
Kapil.
kapilbajpai88 is offline  
Tag This Post ,
Reply With Quote
Old 01-08-2009, 05:12 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: atop the Blue Ridge
Distribution: Debian Lenny, CentOS 5.2
Posts: 7,250
Thanked: 31
Quote:
Originally Posted by kapilbajpai88 View Post

Is there any way that we can manage the shared libraries, or can we check the location of the shared libraries?
In Red Hat the shared libraries are /usr/lib, /lib, and any libraries listed in /etc/ld.so.conf.d. You can manage the shared libraries by making entries in /etc/ld.so.conf.d and then running the ldconfig command. See:

man ldconfig

You can also add or delete libraries in /usr/lib or /lib and then run ldconfig.

--------------------
Steve Stites

P.S. I have had problems in the past with such things as a symbolic link libdl.so.2 pointing to the incorrect version of libdl. You might be able to fix your problem by fixing a broken symbolic link.

Last edited by jailbait; 01-08-2009 at 05:15 PM..
jailbait is offline     Reply With Quote
Old 01-08-2009, 05:13 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva Spring 2009.1 / PClinuxOS 2009 / PCLXDE 2009
Posts: 3,560
Thanked: 84
libdl is part of the glibc package. Check if the glibc package is installed. If it is you might want to try reinstalling it.
{BBI}Nexus{BBI} is offline     Reply With Quote
Old 01-09-2009, 11:47 AM   #4
kapilbajpai88
Member
 
Registered: Jul 2008
Posts: 174
Thanked: 3

Original Poster
Question

Quote:
Originally Posted by jailbait View Post
In Red Hat the shared libraries are /usr/lib, /lib, and any libraries listed in /etc/ld.so.conf.d. You can manage the shared libraries by making entries in /etc/ld.so.conf.d and then running the ldconfig command. See:

man ldconfig

You can also add or delete libraries in /usr/lib or /lib and then run ldconfig.

--------------------
Steve Stites

P.S. I have had problems in the past with such things as a symbolic link libdl.so.2 pointing to the incorrect version of libdl. You might be able to fix your problem by fixing a broken symbolic link.
Hi There,
What you told me would be fine when I will get this 'libdl.so.2' file. I tried looking in /etc/lib and /lib thereafter, as you have suggested me to do that, but didn't get much information.
What could be the reason for this. Is there any other way through which we can chk the problems with shared libraries ??

Thank You,
Kapil.
kapilbajpai88 is offline     Reply With Quote
Old 01-09-2009, 11:54 AM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Posts: 174
Thanked: 3

Original Poster
Question

Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
libdl is part of the glibc package. Check if the glibc package is installed. If it is you might want to try reinstalling it.
Hi There,
What you told me would be fine when I will get this 'libdl.so.2' file. I tried looking in /etc/lib and /lib thereafter, as you have suggested me to do that, but didn't get much information.

Anyways, I am not very sure that glibc package is there or not. Could you please tell me how to check that, or how can I install that on the rhel5

What could be the reason for this. Is there any other way through which we can chk the problems with shared libraries ??

Thank You,
Kapil.
kapilbajpai88 is offline     Reply With Quote
Old 01-09-2009, 03:19 PM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva Spring 2009.1 / PClinuxOS 2009 / PCLXDE 2009
Posts: 3,560
Thanked: 84
You could try
Code:
locate glibc
It should return something like this:

/usr/lib/glib/include/glibconfig.h
/usr/lib/glib-x.x/include/glibconfig.h


As for where you can download it from or add it, maybe someone else can give you that info.
{BBI}Nexus{BBI} 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
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object.. empcrono Slackware 10 11-10-2008 08:33 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


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