Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-14-2003, 02:40 PM
|
#1
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Rep:
|
Shared libraries question...need help
Hello everyone. I have a question on shared libraries.
I was installing some software and everything went fine, until I tried to execute the problem.
Here is what happened when I tried to run the program:
error while loading shared libraries: liblber.so.2: cannot open shared object file: No such file or directory
So I did a whereis to see where liblber.so.2 is which returned this:
liblber.so: /usr/local/lib/liblber.so.2 /usr/local/lib/liblber.so
My question is, what do I need to do to correct this so I can run the program?
Secondly, can someone explain to me what the problem is and how to correct this/learn from this so if I run into this again in the future, I know how to correc t it.
Thanks
Tarballed
|
|
|
03-14-2003, 03:46 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It looks you don't have /usr/local/lib in LD_LIBRARY_PATH variable or ld.so.conf file. They work the same way as PATH for executables. When your library is not in one of them, it cannot be easily used (without the whole path).
The easiest solution: add '/usr/local/lib' to ld.so.conf and run 'ldconfig' (to re-read the file).
|
|
|
03-14-2003, 04:22 PM
|
#3
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
Mara,
Thanks for your help. I remember having a similar problem before. I had thought I entered the correct information into the ld.so.conf file, but I actually put the full path. Whoops!
Once I put the full path in and ran ldconfig, it fixed it.
Do you happen to have any links that explain this in more detail? I would like to know more about this file so I can increase my knowledge.
Thanks.
Tarballed
|
|
|
03-15-2003, 01:04 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
man ldconfig
I don't know any other links. The idea is very simple and I hope the man page has all the info you need.
|
|
|
All times are GMT -5. The time now is 07:27 PM.
|
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
|
|