Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: install intel fortran compiler on ubuntu

  1. #1
    Join Date
    Sep 2008
    Beans
    11
    Distro
    Ubuntu 10.04 Lucid Lynx

    install intel fortran compiler on ubuntu

    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.

    let the system read the updated paths by the command:
    14- source .bashrc

    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

    Further information: http://software.intel.com/en-us/arti...x-with-ubuntu/
    Last edited by byulent; May 29th, 2012 at 03:07 PM. Reason: correction

  2. #2
    Join Date
    Aug 2006
    Location
    Santa Fe, NM
    Beans
    892
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: install intel fortran compiler on ubuntu

    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.
    Last edited by Dougie187; March 8th, 2009 at 03:30 PM.

  3. #3
    Join Date
    May 2009
    Beans
    1

    Re: install intel fortran compiler on ubuntu

    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

  4. #4
    Join Date
    Nov 2006
    Location
    London
    Beans
    94
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: install intel fortran compiler on ubuntu

    Quote Originally Posted by jugoof View Post
    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/arti...x-with-ubuntu/

  5. #5
    Join Date
    Jul 2009
    Beans
    1

    Re: install intel fortran compiler on ubuntu

    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

  6. #6
    Join Date
    Aug 2009
    Beans
    1

    Re: install intel fortran compiler on ubuntu

    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

  7. #7
    Join Date
    Mar 2009
    Beans
    4

    Re: install intel fortran compiler on ubuntu

    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

  8. #8
    Join Date
    Feb 2010
    Location
    Arvada, Colorado
    Beans
    67
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: install intel fortran compiler on ubuntu

    Even if you're installing the 64 bit version, you still need these libraries, which come with libstdc++5.

    libstdc++
    libstdc++5
    glibc
    libgcc
    Last edited by Choragos; March 9th, 2010 at 05:40 PM. Reason: Clarification based on carefully reading a previous post

  9. #9
    Join Date
    Apr 2010
    Beans
    3

    Re: install intel fortran compiler on ubuntu

    hey i have installed intel fortran compiler and also added the path in .bashrc file.

    on giving a command to compile like ifort new.for it gives an error -

    /Desktop$ ifort new.for
    /opt/intel/Compiler/11.1/064/bin/ia32/fortcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
    ifort: error #10273: Fatal error in /opt/intel/Compiler/11.1/064/bin/ia32/fortcom, terminated by 0x7f


    well m not able to understand that... new to linux plz help

  10. #10
    Join Date
    Sep 2010
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: install intel fortran compiler on ubuntu

    Quote Originally Posted by Choragos View Post
    Even if you're installing the 64 bit version, you still need these libraries, which come with libstdc++5.

    libstdc++
    libstdc++5
    glibc
    libgcc

    Hi There!


    Firstly,
    sudo apt-get install ia32-libs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package ia32-libs

    Secondly,
    I try "sudo apt-get install ibstdc++ (or libstdc++5 or or or glibc or libgcc)"
    in terminal I see
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package libgcc

    And in the setup I see

    Step no: 4 of 7 | Installation configuration - Missing Critical Pre-requisite
    --------------------------------------------------------------------------------
    There is one or more critical unresolved issue which prevents installation to
    continue. You can fix it without exiting from the installation and re-check. Or
    you can quit from the installation, fix it and run the installation again.
    --------------------------------------------------------------------------------
    Missing critical pre-requisite
    -- missing system commands
    --------------------------------------------------------------------------------
    1. Show the detailed info about issue(s) [default]
    2. Re-check the pre-requisites

    h. Help
    b. Back to the previous menu
    q. Quit

    And Re-check the pre-requisites give me the same result.

    I`m sure there is a problem))
    Oleg.
    Last edited by UlrihRekkenin; September 19th, 2010 at 04:07 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •