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.
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-18-2005, 08:28 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Posts: 13
Rep:
|
How do I add library path?
Hi, I just downloaded libstroke source and make installed it. I needed this library because fvwm2 seems to need it.
After the libstroke installation, I tried to run fvwm2. fvwm2 gave me the following error:
fvwm2: error while loading shared libraries: libstroke.so.0: cannot open shared object file: No such file or directory
I am suspecting that it is because libstroke is installed in /usr/local/lib and perhaps I don't have this path in my library path.
Can someone please tell me if this is the reason? And, if so, how do I add this path into my library path?
Please please be clear. I am really new in linux.
Thanks so much...
scc28y
|
|
|
03-18-2005, 08:34 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
Type: export PATH=$PATH:/usr/local/lib
|
|
|
03-18-2005, 08:38 PM
|
#3
|
LQ Newbie
Registered: Feb 2004
Posts: 13
Original Poster
Rep:
|
Thanks for the quick reply. But isn't there a file that I can just add the library path to it? I remember reading somewhere about ld.so.conf in /etc? I echoed my $PATH and none of the paths are library. I am just wondering if it is correct to add a library path to the PATH env variable?
Thanks
scc28y
|
|
|
03-18-2005, 08:40 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
Yes, your app is looking for that file but can't find it where it expects it to be.
|
|
|
03-18-2005, 10:00 PM
|
#5
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
Quote:
export PATH=$PATH:/usr/local/lib
|
PATH is only used for binaries? The right way to add a non-standard lib path is to add it to the /etc/ld.so.conf. Then run ldconfig.
|
|
|
03-18-2005, 10:56 PM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
Oops sorry my mind was fixated on mplayer :-/ Thought you were someone else that i was advising.
Last edited by {BBI}Nexus{BBI}; 03-18-2005 at 10:58 PM.
|
|
|
All times are GMT -5. The time now is 11:56 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
|
|