LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-18-2005, 08:28 PM   #1
scc28y
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
Angry 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
 
Old 03-18-2005, 08:34 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Type: export PATH=$PATH:/usr/local/lib
 
Old 03-18-2005, 08:38 PM   #3
scc28y
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 03-18-2005, 08:40 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Yes, your app is looking for that file but can't find it where it expects it to be.
 
Old 03-18-2005, 10:00 PM   #5
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-18-2005, 10:56 PM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
library path Scott7 Debian 1 10-19-2005 07:25 AM
library path variable vrdhananjay Linux - Software 2 09-03-2005 06:31 PM
How can I PATH the intel fortran library? souaw Mandriva 1 04-27-2004 04:34 PM
GD Library path? kinkybullet Linux - Newbie 1 02-11-2004 09:15 PM
Cannot find path for library Baran Linux - Newbie 5 09-03-2003 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration