Setting up Environment variables of Intel fortran compiler

Paul Howarth paul at city-fan.org
Wed Aug 31 06:12:17 UTC 2005


On Tue, 2005-08-30 at 22:26 -0400, David Niemi wrote:
> I have installed this compiler for some testing work and am not 100%
> sure where to put the references listed.
> 
> ************ Excerpt from Install Instructions
> 
> The programs in the Intel Fortran Compiler 9.0 for Linux product rely on
> the environment variables PATH and LD_LIBRARY_PATH. The installation
> script (install.sh) creates compiler environment script files
> (ifortvars.sh/idbvars.sh) that set these variables. It is strongly
> recommended that you add those script files into your login script
> (.login file). Once the variables are set in the ".login" file there is
> no need to run the script files for each session. 
> 
> source the script to setup the compiler environment:
> 
>       * > source <install-dir>/bin/ifortvars.sh(.csh)  
>         to use ifort 
>       * > source <install-dir>/bin/idbvars.sh(.csh)  
>         to use idb 
> ******************
> 
> Should I put the paths to the script files in my .bash_profile or
> in /etc/profile so that all users (me) can use it?

What's in these files? Do they have conflicting settings for any of the
variables (i.e. if you run both, can you then use both products without
needing to run either script again?)?

> Would there be a particular format to doing this?

If they don't conflict, the best place is probably in /etc/profile.d,
where the settings will be picked up automatically by all users.

> Also my rc.local has the line: "touch /var/lock/subsys/local"  Which
> means / does what?

It creates the file /var/lock/subsys/local if it doesn't already exist.
It's just a way of recording that the rc.local file has been run.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list