Next: , Previous: Installing a package, Up: Getting started

2.4 Setting your environment to use installed packages

If you want to use the newly installed package by default you will need to modify the relevant variables in your environment, such as PATH, LD_LIBRARY_PATH, INFOPATH, etc.

There is a sample script in the top-level source directory which can be used to set the main environment variables.

     $ source

Note that you need to load this file into the current shell with the source command, instead of executing it (which would only apply the definitions temporarily in a subshell).

After loading this file, your environment variables should include the target directory so you can run the new packages directly:

     $ echo $PATH
     $ which hello

If you want to restore your original environment variables they are saved in the variables ORIG_PATH, ORIG_LD_LIBRARY_PATH, etc.