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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

won´t hold library path 1

Status
Not open for further replies.

Nostradamus

Technical User
May 3, 2000
419
SE
A friend of mine is setting up a half-life server.
In order to run the server he must export this enviroment variable. He writes...
HD_LIBRARY_PATH=/halflife/hlds_l:export HD_LIBRARY_PATH

I´m almost certain this was the command he used.

Checking with export shows that it´s there.

After reboot this disappear.

Is there some way to make that variable remain?

I tried adding it to the bottom of rc.local but it didn´t bite. Are there different ways of typing this command?

OS = red hat 7.1

thanks in advance /Sören
 
Hi,



Actually you can do it as one line like this..



export HD_LIBRARY_PATH=/halflife/hlds_l

As a bash environment variable you should put it in /etc/profile if it applies to all users. (rc.local runs before any login and the shell is not active....)

Rgds
 
Ok. Thanks a lot.

I´ll try that out later today.
If I want to run it in another shell. Which file would I manipulate?
I thought .bashrc was the "autoexec.bat" for bash. What is the function of that file?
/Sören
 
Hi,

For an explanation of the various bash config files see --> .

In summary :

/etc/bashrc contains system wide aliases and functions;
/etc/profile contains system wide environment stuff and startup programs;
$HOME/.bashrc contains user aliases and functions;
$HOME/.bash_profile contains user environment stuff and startup programs;


Rgds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top