Re: disappearing environment variables



On Tue, 16 Mar 2004 21:20:39 GMT, mark poole <netmonkey_uk yahoo co uk>  said:

> I updated environment variables thus (i installed to /opt/gtk):
> 
> CPPFLAGS="-I/opt/gtk/include"
> LDFLAGS="-L/opt/gtk/lib"
> PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
> export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH="/opt/gtk/lib"
> 
> PATH="/opt/gtk/bin:$PATH"
> export LD_LIBRARY_PATH PATH
> 
> and everything seemed fine and worked. However when I turned off the 
> machine, all the variable changes were lost  so gtk was no longer linked 
> in.
> If I update the variables again everything works fine, but again a power 
> down causes the changes to be lost
> 
> How can I keep the changes 'cos its a chuffin' pain to relink everytime 
> I turn the machine on

Put the commands in the appropriate startup files for your shell.

Almost all modern Unix shells have a systemwide and a per-user startup file
for setting things like this.  See /etc/profile and ~/.profile and/or ~/.bashrc
for examples.

Attachment: pgpBvyHbmncgi.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]