LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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


Reply
  Search this Thread
Old 01-08-2009, 03:53 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question how to check shared libraries


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.
 
Old 01-08-2009, 04:12 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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 04:15 PM.
 
Old 01-08-2009, 04:13 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
libdl is part of the glibc package. Check if the glibc package is installed. If it is you might want to try reinstalling it.
 
Old 01-09-2009, 10:47 AM   #4
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
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.
 
Old 01-09-2009, 10:54 AM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
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.
 
Old 01-09-2009, 02:19 PM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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.
 
  


Reply

Tags
libraries, shared



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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object.. khronosschoty Slackware 10 11-10-2008 07:33 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 PM.

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
Open Source Consulting | Domain Registration