Why can't my scripts set environment variables?
Greetings. This is my first post on this forum. I am trying to make my computer set some environment variables as follows (the exact variables aren't really important for this question):
CPPFLAGS='-I/opt/glibmm/include -I/opt/gtk/include -I/opt/gtkmm/include -I/opt/libsigc++/include -I/opt/xine-lib/include $CPPFLAGS'
LDFLAGS='-L/opt/glibmm/lib -L/opt/gtk/lib -L/opt/gtkmm/lib -L/opt/libsigc++/lib -L/opt/xine-lib/lib $LDFLAGS'
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH PATH
If I paste these lines into the shell, they work for that instance of the shell. When I restart the shell, I must repaste them. If I put them in ~/.bash_profile, they have no effect. If I put them into a file and run that file, it has no effect whatsoever. What am I doing wrong?
I'm using Fedora Core 2 if that makes any difference.
Thanks in advance!