Redhat Linux Version 8 Commands to Install Intel Fortran 90/95 Compiler Version 8.0.xxx for Linux. by Skip Knoble and Jason Holmes, Penn State, 16 December 2003 Files we put on our Intel Fortran CD which were downloaded from: http://www.intel.com/software/products/compilers/downloads/forlin.htm The license file was obtained via email by registering the product. Note: Note that Intel Fortran 7.1 for Linux will not work properly under Red Hat Linux 9.0. Intel Fortran 8.0 will. http://www.intel.com/software/products/compilers/beta/welcome.htm To get Fortran 8.0, you need to register for Priemere Support; once logged in to Priemere Support you can download Intel Fortran for Linux Version 8.0.xxx. 0) You need to get a licence and serial number via: http://developer.intel.com/software/products/compilers/flin/noncom.htm If you don't have this information, the install will fail. 1) Login as the Root user 2) Open a Terminal Window (click RedHat/System Tools/Terminal 3) Change directories to your regular user directory; e.g., cd /home/psuaset 4) Make a temporary directory to contain all the files on CD mkdir temp 5) Change to this temporary directory: cd temp 6) Mount the CD-ROM drive: mount /dev/cdrom 7) Copy the files from CD to /home/psuaset/temp cp /mnt/cdrom/*.* /home/psuaset/temp 8) Unmount the CD: umount /dev/cdrom Remove the CD from the CD-ROM drive. 9) Set the Intel License environment variable by issuing the command: export INTEL_LICENSE_FILE="opt/intel_fc_80/licenses" You can verify that this was set by issuing the command: export 10 Create the license file subdirectory: cd / mkdir opt cd opt mkdir intel cd intel mkdir licenses cd /home/psuaset/temp 11) Copy the LICENSE file to it's location: cp *.lic /opt/intel/licenses/ 12) Extract the intall file l_fc_p_8.0.034.tar or tar.gz tar -xvf l_fc_p_8.0.xxx.tar or tar -zxvf l_fc_p_8.0.xxx.tar.gz where xxx is the current level (e.g., 034). This should extract to directory: /home/psuaset/temp/intel_fc_80 13) Install the compiler(1) issue the command: cd /home/psuaset/temp/intel_fc_80 ./install.sh Reply to any prompts, typically by pressing enter. You might need to specify the license file; if so specify it as: /opt/intel_fc_80/licenses/l_for_nnnnnnnn.lic where nnnnnnnn is part of the filename of your license file. Then at the second prompt for 1 Compiler and 2) Debuggger enter x to exit the install. Prior to entering X after the installs, you should see 2 messages: Install successful This should install ifort to: /opt/intel_fc_80 and the debugger to: /opt/intel_idb_73 . 14) Erase all the install files in /home/psuaset/temp cd /home/psuaset rm -f -r temp 15) Logout from Root user and log in as a regular user. 16) Login as a non-root user; e.g. psuaset 17) Open a Terminal Window (click RedHat/System Tools/Terminal 18) Issue the command: cd /home/psuaset 19) Use the text editor (RedHat/Accessories/Text Editor) to edit the file: /home/psuaset/.bash_profile and after the last line of this file add the line: . /opt/intel_fc_80/bin/ifortvars.sh (Note the leading period followed by space) Then SAVE this file under the same name, .bash_profile . After next login, this will set the Intel Fortran Environment variables so the compiler can be found and run from any terminal prompt. 20) Logout 21) Login as a non-root user again; e.g., psuaset 22) Create a Fortran program subdirectory by issuing the commands: cd /home/psuaset mkdir fort cd fort 23) Create a simple Fortran Program using the Text Editor (RedHat/Accessories/ Text Editor) to create and SAVEAS the file /home/psuaset/fort/hello.f90 Program Hello print *, "Hello World!" End Program Hello 24) Run the program by issuing the commands: ifort hello.f90 -o hello ./hello This should display: Hello World! Note: For extensions .f, for .f77 the format defaults to Fixed form. Free form can be specified using option: -FR (case sensitive) 25) Issue the command: ifort -help > iforthelp.txt You can edit this file to see various compiler/preprocessor/linker options. Also see the files in /opt/intel_fc_80/docs (various manuals in PDF format, and some text files copied from the Intel Fortran Web pages. -------------------------------------------------------------------------------