You would be better off modifying the .bash_profile in your home directory. Otherwise, you are correct in your understanding of environment variables, how to set them, and how to export them.
Dave On Sun, 2002-01-06 at 12:21, Terry Smith wrote: > I think this is a prety basic question, but that's why I'm a newbie:-). > > Today's task is upgrading evolution. > > Short version: > I'd like to add an environment variable. I've never done this but have > RTFM'd. Am I correct in assuming that I could edit the '/etc/profile' > file, add a new line such as 'ENVVAR=value' and then add the ENVVAR to > the 'EXPORT' line? > > Longer version: > I found a magazine in the local bookstore - "LinuxFormat" - published in > the UK. Seems pretty good (and also quite expensive). Anyone have > experience with the mag? Anyway, when you buy the mag you get a CD with > lots of software on it, including, in this case, Evolution 1.0 beta 5. > Now I know I can go to Ximian's site and grab this stuff but I'm trying > to upgrade my evolution from the CD supplied files. > > I unpacked the tarball and ran ./configure. I got an error to the effect > that configure couldn't locate the oaf-config file. Well I don't know > what this is but I did a locate and found an /etc/oaf directory with a > couple of files in it (oat-config.xml and auto-config.xml.example). > Configure says I should set my environment variable OAF-CONFIG to the > full path name of oaf-config. > > So can I modify my /etc/profile file by adding a line, viz. > > OAF-CONFIG=/etc/oaf > > and then adding > > OAF-CONFIG to the line in the /etc/profile that EXPORTS environmental > variables? > > TIA. > > Terry Smith > Hatchville, MA, USA > > > > > ---- > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Do not meddle in the affairs of dragons, for you are crunchy, and good with ketchup.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com