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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-08-2009, 03:53 PM
|
#1
|
|
Member
Registered: Jul 2008
Posts: 197
Rep:
|
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.
|
|
|
|
01-08-2009, 04:12 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
Quote:
Originally Posted by kapilbajpai88
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.
|
|
|
|
01-08-2009, 04:13 PM
|
#3
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,288
|
libdl is part of the glibc package. Check if the glibc package is installed. If it is you might want to try reinstalling it.
|
|
|
|
01-09-2009, 10:47 AM
|
#4
|
|
Member
Registered: Jul 2008
Posts: 197
Original Poster
Rep:
|
Quote:
Originally Posted by jailbait
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.
|
|
|
|
01-09-2009, 10:54 AM
|
#5
|
|
Member
Registered: Jul 2008
Posts: 197
Original Poster
Rep:
|
Quote:
Originally Posted by {BBI}Nexus{BBI}
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.
|
|
|
|
01-09-2009, 02:19 PM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,288
|
You could try 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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|