LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-18-2005, 06:09 AM   #1
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
howto add an environment variable


hi all

i need to add this variable LD_LIBRARY_PATH to my environment permanently
at the moment it either doesn't exist or is empty
i don't want to have to go export LD_LIBRARY_PATH=/usr/local/lib all the time
can someone let me know how this can be done

thanks
dave
 
Old 04-18-2005, 06:26 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

depends on your shell.
for bash, add that to your .bashrc
Code:
export LD_LIBRARY_PATH=/usr/local/lib
regards

slackie1000
 
Old 04-18-2005, 06:34 AM   #3
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
oh hey, thanks, yeah i'm using bash
hopefully that works, when i make changes like that do i need to restart the computer?
 
Old 04-18-2005, 06:55 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

Quote:
Originally posted by dtra
oh hey, thanks, yeah i'm using bash
hopefully that works, when i make changes like that do i need to restart the computer?
in theory, you only need to restart your computer when you change something related to the kernel.
this is not windows.
you just need to do that ( after changing your .bashrc file):
Code:
bash
env | grep -i ld_libraby_path
and you will see where is pointing.

regards

slackie1000
 
Old 04-18-2005, 06:22 PM   #5
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
awesome, thanks for the pointers
 
  


Reply



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
environment variable gamor Linux - Newbie 4 04-30-2005 05:28 PM
Environment Variable salmanucit Linux - Software 2 07-21-2004 02:27 AM
how to add environment variable to .bashrc file hasan Linux - General 7 10-03-2003 04:43 PM
how to add environment variable to .bashrc file? hasan Red Hat 1 10-03-2003 01:37 PM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM

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

All times are GMT -5. The time now is 01:15 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