Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hey all, I have a question about how to install shared libraries. I'm installing an RPM package on my system (i'm using CentOS). One of the dependencies that was missing was libcrypto.so.8. So i downloaded the source for this library and configured and compiled it. How do I go about setting this up on my system so it'll be recognized as being installed. Even after i compiled and put the resulting file in the /lib directory. When i try to install the rpm once again, it still complains that the library is missing. I even made sure my LD_LIBRARY_PATH environment variable contained /lib in the path. What am i doing wrong. Is there some special way to install these shared libraries? Thanks in advance. Mike
Hey Evo2, thanks for the reply, I'm trying to install git on my system. I downloaded the rpm and then ran
rpm -i git-220.127.116.11-1.fc11.i386.rpm
When I run that I get the following errors:
error: Failed dependencies:
libcrypto.so.8 is needed by git-18.104.22.168-1.fc11.i386
libcurl.so.4 is needed by git-22.214.171.124-1.fc11.i386
libexpat.so.1 is needed by git-126.96.36.199-1.fc11.i386
libssl.so.8 is needed by git-188.8.131.52-1.fc11.i386
perl(Git) is needed by git-184.108.40.206-1.fc11.i386
perl-Git = 220.127.116.11-1.fc11 is needed by git-18.104.22.168-1.fc11.i386
rsync is needed by git-22.214.171.124-1.fc11.i386
would it be possible to tell me how i can install those libraries both with and without yum? Thanks again for your help with this.
Occasionally, you will find that you must manally run the command (as root): /sbin/ldconfig. (It may be slightly different on your system.)
Start by carefully reading the man page on this tool, as well as the man-pages which are referenced in that one.
Basically... Linux looks for shared-libraries in a handful of locations (which you can configure, but probably shouldn't). But this would take a long time if it had to be done every time, so the loader uses a "cache file" to tell it directly where to find anything that it's looking for. Building this cache file is what ldconfig does.
The loader never actually does a filesystem search ... it always uses the cache. If the cache is not up-to-date, the file won't be seen even if it is there. A file that has been removed, but that is still listed in the cache, will be "not found" and no further searching will be done. Most of the time, RPMs that install new libraries will invoke this command, but not always.
Of course, this command refers to LD_LIBRARY_PATH when doing its work, so this information must be set up correctly before invoking it.
Thanks for the feedback guys, really appreciate it. If you don't mind, I have one more question regarding the yum package installer. I will read the documentation on it, but one thing i remember not being able to do is find all the packages that are available with yum. For example if i'm looking for a certain library to install, how do i even verify that it's available through yum is there a way to view a list? Thanks again.