Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PATH and LD_LIBRARY PATH

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo,

How do I add something to my (root) PATH?
And how do I add something to LD_LIBRARY_PATH

for example, I get an error I need to include

/usr/local/something in $PATH and in $LD_LIBRARY_PATH

 
#1
for adding something in PATH.
(I suppose that you are using bash as shell)
go in /etc/profile
and add at the end something like
PATH=$PATH:/usr/local/something ; export PATH
will accesible for all users.

if you want to do it just for root, go in tha root home dir end edit the file .profile
Add the same line.




#2
you can set LD_LIBRARY_PATH in the same way.
but, you also can edit the file /etc/ld.so.conf
and add the direcory in that file.


PM __
___
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top