#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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.