PDA

View Full Version : install intel fortran compiler on ubuntu


byulent
February 28th, 2009, 09:59 AM
First go to the intel web site "http://software.intel.com", click on 'Downloads',
click on 'Free Non-commercial Downloads',
click on 'accept',
click on 'intel fortran compiler professional edition for linux',
provide an email address where you will receive the serial number,
download the suitable file, for instance 'l_cprof_p_11.0.081.tgz'.

On terminal write the following commands and follow the instructions:

1- sudo apt-get install rpm build-essential
2- sudo apt-get install libstdc++6
3- sudo apt-get install ia32-libs
go to the folder which contains the downloaded file and then
4- tar xvzf l_cprof_p_11.0.081.tgz
5- cd l_cprof_p_11.0.081
6- sudo ./install.sh

Follow the installation instructions:

7. choose Option 1 to install Intel Fortran,
8. choose Option 1 to proceed with a serial number.
9. type in the serial number (case-sensitive) given in the email. (XXXX-XXXXXXXX). Choose 1 for a default install.
10. Press Enter to read the license agreement. The spacebar speeds through this quickly. Type 'accept' to accept the license agreement.
11. At some point the installation may stop to ask for some 'optional' packages to be installed. Skip this warning.

After the installation is finished go to the terminal and:

12- cd
13- nano .bashrc
the nano editor will open ".bashrc" file,
go to the end of this file and add the following lines:

PATH="/opt/intel/Compiler/11.0/081/bin/intel64:$PATH"
export PATH
LD_LIBRARY_PATH="/opt/intel/Compiler/11.0/081/lib/intel64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

Note: The lines above are for 64 if you use 32 replace 'intel64' by 'intel32'. As the versions of the compiler change the installation path will change so make sure that you enter the right path in the lines above.

exit the file by saving the changes. The installation is finished.

Now you can compile (on terminal) your code by the command:

ifort yourcode.f

and run the created executable ('a.out' in this case) by

./a.out


A useful reference thread, which has been used for the preparation of the current thread:
http://ubuntuforums.org/showthread.php?t=89571

Dougie187
March 2nd, 2009, 02:46 PM
You should also know that this edition is not for use in academia either.

The free version is only for personal use while sitting at home. It is a very limited usage requirement. I think you might want to add something about this into your post.

jugoof
May 18th, 2009, 05:27 PM
Is Ubuntu 8.10 Intrepid Ibex 64-bit supported? I get an error about missing optional pre-requisite

-- operating system type is not supported
-- sytem glibc or kernel version not supported or not detectable
-- binutils version not supported or not detectable

mrphd
June 2nd, 2009, 01:47 PM
Is Ubuntu 8.10 Intrepid Ibex 64-bit supported? I get an error about missing optional pre-requisite

-- operating system type is not supported
-- sytem glibc or kernel version not supported or not detectable
-- binutils version not supported or not detectable

you can safely ignore these errors, and just proceed with the installation. see, e.g. http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/

rchasman
July 6th, 2009, 09:24 AM
The instructions were very useful to me. However for the 32 bit installation there are some small corrections.1) For the 32 bit system, one needs libstdc++5 and this can be gotten from synaptic. A gcc version gets installed with it, but that's ok. 2)No need to install ia32-libs. 3)When editing the .bashrc file, one wants to put in

PATH="/opt/intel/Compiler/11.0/083/bin/ia32:$PATH"; export PATH

LD_LIBRARY_PATH="/opt/intel/Compile/11.0/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH

yosh_ghoul
August 29th, 2009, 03:57 PM
Sorry, i have the same problem whit intel fortran 11.1 ia32 running Ubuntu 9.04; and i did everything byulent said, but when i run a my program i dont really know if the compiler is runnig. Also when i try to read the manual "~$:man ifort" it doesn't exist, but "~$:ifot -hepl" it shows what i think it's the manual. Before i tried in many ways to run ifort, and the next lines where usefull for one sesion:
:~$ source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
i really don't know what did i do but it works :)
I have another question, when i saw my program were compiled in my school, some line said: vectorized *.f
but now when i compile in my laptop it doesn't say anything, what does this mean? it's ifort working?
Thank you

ecrisfield
October 4th, 2009, 01:19 PM
Great instructions. As noted, paths change over time. I installed today and the following paths were appropriate:

PATH="/opt/intel/Compiler/11.1/056/bin/ia32:$PATH";export PATH

LD_LIBRARY_PATH="/opt/intel/Compiler/11.1/056/lib/ia32:$LD_LIBRARY_PATH";export LD_LIBRARY_PATH

After you edit the .bashrc type at the command line:

source .bashrc

(I think this just prompts the machine to actually read the edits you just made.)

Thanks for the thread...

Elizabeth