24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

v /usr/share/man/info/en_US/xlf/postscript contains the PostScript <strong>for</strong>mat of the<br />

English <strong>XL</strong> <strong>Fortran</strong> publications.<br />

You must also copy the /etc/xlf.cfg file from the server to the client. The /etc<br />

directory contains the configuration files specific to a machine, and it should not be<br />

mounted from the server.<br />

Correct Settings <strong>for</strong> Environment Variables<br />

You can set and export a number of environment variables <strong>for</strong> use with the<br />

operating system. The following sections deal with the environment variables that<br />

have special significance to the <strong>XL</strong> <strong>Fortran</strong> compiler, application programs, or both.<br />

Environment Variable Basics<br />

You can set the environment variables from shell command lines or from within<br />

shell scripts. If you are not sure which shell is in use, a quick way to find out is to<br />

issue an echo $0. This provides a different result in each shell:<br />

$ sh<br />

$ echo $0<br />

sh<br />

$ ksh<br />

$ echo $0<br />

ksh<br />

$ csh<br />

% echo $0<br />

No file <strong>for</strong> $0.<br />

%<br />

The Bourne shell path is /bin/sh, the Korn shell path is /bin/ksh, and the C shell<br />

path is /bin/csh.<br />

To set the environment variables so that everyone on the system has access to<br />

them, set the variables in the file /etc/profile (<strong>for</strong> the Bourne or the Korn shell), or<br />

set the variables in the file /etc/csh.login or in the file /etc/csh.cshrc (<strong>for</strong> the C<br />

shell). To set them <strong>for</strong> a specific user only, add the appropriate commands to the<br />

appropriate .profile or .cshrc file in the user’s home directory. The variables are set<br />

the next time the user logs on.<br />

For more in<strong>for</strong>mation about setting environment variables, see the <strong>AIX</strong> Commands<br />

Reference.<br />

The following examples show how to set environment variables from various<br />

shells.<br />

From the Bourne or Korn shell:<br />

NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/prime/%N<br />

LANG=en_US<br />

TMPDIR=/home/joe/temp<br />

export LANG NLSPATH TMPDIR<br />

From the C shell:<br />

setenv LANG en_US<br />

setenv NLSPATH /usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/prime/%N<br />

setenv TMPDIR /home/joe/temp<br />

To display the contents of an environment variable, enter the command<br />

echo $var_name.<br />

12 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!