LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-15-2007, 08:28 PM   #1
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Rep: Reputation: 15
LD_LIBRARY_PATH doesn't work...


Hi,
I have a problem with a program I installed, called OOF2. It works fine, but everytime I log in again and want to use that program it complains about a certain library that it cannot find. After typing
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
I can open the program and work with it.
My question is: is there a more permanent way to let the program now that it has to look in usr/local/lib to find the library it needs, so I don't have to go over this everytime I want to use the program. I read in other posts that you have to change a certain file. But what file exactly and how do I change it?
Thanks already.
Lies
 
Old 10-15-2007, 08:59 PM   #2
anotherlinuxuser
Member
 
Registered: Jan 2007
Location: Alberta Canada
Distribution: Fedora/Redhat/CentOS
Posts: 68

Rep: Reputation: 19
You didn't include the distro you are using, but you should have a /etc/ld.so.conf file on your system. If you do, you can add /usr/local/lib to that file and then run 'ldconfig' as root.
 
Old 10-16-2007, 12:55 AM   #3
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
u can also append the following line in ur .bashrc or .cshrc
Quote:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
though this really a novice way of doing things
 
Old 10-16-2007, 01:57 AM   #4
selva146
Member
 
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
As sohny said you can better put this command at .bsahrc file under the home directory of the user.

if you want to implemetn all the users of this system then put this in /etc/profile

or create a seperate file under /etc/profile.d/ directory

selvaraju

http://linuxmonk.blogspot.com
 
Old 10-16-2007, 07:48 AM   #5
lies
LQ Newbie
 
Registered: Sep 2007
Distribution: Mandriva2009
Posts: 22

Original Poster
Rep: Reputation: 15
thank you people! i changed the etc/ld.so.conf file and that worked.
cheers,
lies
 
  


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
Ld_library_path newbie_adm Linux - Newbie 2 08-30-2006 08:52 AM
Ld_library_path fng_#1 Linux - Software 4 09-19-2004 11:33 PM
???? Ld_library_path ???? g452 Linux - Software 9 08-26-2004 03:00 PM
Ld_library_path barrys Mandriva 2 06-15-2004 12:19 PM
where is LD_LIBRARY_PATH Ninja_212 Slackware 4 10-07-2003 10:41 PM

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

All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration