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!
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.
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.
I am fustrated with environment variables they never seem to work for me.
Im most likely invoking them wrongly. (running Suse 9.0)
For example I compiled and installed lame (mp3 encoder/decoder) the libmp3lame.so.0 installed in the usr/local/lib directory. This shared library is significant because im trying to install avidemux-2.0.28-Suse9.0KDE3.1.4.i686.rpm this package complains about not finding this libmp3lame.so file. so I now run
cd /lame-3.96
make uninstall
make clean
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
ldconfig (im not sure about how to use ldconfig and the man pages for it were more confusing)
I then compiled and install the lame source code and I verified that the program installed and by default the libmp3lame.so.0 is found in the /usr/local/lib ( I was also able to see it there)
however when i tried to install rpm -ivh avidemu-xxxxxx it still complains about the libmp3lame.so.0
although the environment variable set in to the right directory
echo $LD_LIBRARY_PATH
now i know i can probably simple fix this problem with a simple link of the libmp3lame.so file to the directory avidemux is looking for. But i want to know why that I can never get Environment variables to work in Bash terminal. I have the same problem with some other environment variables like PK_CONFIG_PATH
You're doing everything correctly, however what's happening is that RPMs check the rpm database for dependencies, not the actual files on the filesystem which you installed from the source.
It will complain unless you install an RPM that provides libmp3lame.so.0
If you want to install it anyway use --nodeps
Yea with --nodeps you're just bypassing dependency check on the RPM you want to install, as long as the library file the actualy software needs does exist, it should work.
I think by defailt /usr/local/lib is already in the library path, all you need to do is run ldconfig once the library is installed, in fact many packages do this for you already when you "make install"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.