Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42

Thread: HOWTO: Install Intel Fortran 9.0

  1. #11
    Join Date
    Mar 2006
    Beans
    6

    Re: HOWTO: Install Intel Fortran 9.0

    Hi All,
    I had the same problem of not being able to install Intel Fortran Compiler under Dapper. The error was

    ...
    install_fc.sh can't identify your machine type, glibc, or kernel.
    ...

    Some of you had the same problem.
    Solution:
    The installation script install_fc.sh tries to determine the GLIBC version within the function GET_SYSTEM_REQUIREMENTS () {...} with the following statement (lines 1506-1510):
    Code:
    if [ "$RPM_NOT_FOUND" = 0 ] ; then
      GLIBC="$(rpm -qa | egrep -e 'glibc-2\.2\.4' -e 'glibc-2\.2\.5' -e 'glibc-2\.2\.93' -e 'glibc-2\.3' -e 'glibc-2\.4' 2> /dev/null )"
    else
      GLIBC="$(ls /lib/libc-* | grep -e '[.]so' | sed s@'\(.*\)\(\.so.*\)'@'\1'@g)"
    fi
    Now the thing is, if you are using Debian/Ubuntu and you have alien, you also have rpm. BUT the rpm database that holds a list of all installed packages under eg. SUSE is empty under Ubuntu, since it is not used.
    Therefore, the GLIBC variable is left empty (rpm -qa gives back nothing). The second call (ls /lib/libc-...) should be used but is not since rpm is installed.

    Okay, what do we do about it?
    First of all, you can not uninstall rpm for alien depends on it. What we can do though, is to change the install_fc.sh script so that it does not use rpm. This is simple. Just go to line 226 in install_fc.sh (the IS_RPM_PRESENT () {} function) and look for
    Code:
    RPM_NOT_FOUND=$?
    .
    Change it to
    Code:
    RPM_NOT_FOUND=1
    and install.sh should work just fine. No need to convert any package by hand, the installer will do that for you.

    I would be happy to hear if this works for you, I hope it will
    Ciao

    Ps: The line numbers are for the Intel Fortran 9.1 Compiler. You might have to adapt them for 9.0 or C Compiler. Thats why I gave you the function names as well.

  2. #12
    Join Date
    Oct 2005
    Location
    München
    Beans
    332
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install Intel Fortran 9.0

    it works

  3. #13
    Join Date
    Sep 2006
    Beans
    2

    Unhappy Re: HOWTO: Install Intel Fortran 9.0

    I am newbie of ubuntu and linux. I follow the guide of installing Intel Fortran. I get the lates version of fortran 91.036, it's seem to be well installed, but, as a newbie, I don't know how to access the .bashrc to insert some code as instructed.
    Please helme, thanks,

  4. #14
    Join Date
    May 2006
    Beans
    6

    Re: HOWTO: Install Intel Fortran 9.0

    that's simple

    open a terminal window.

    than

    Code:
    cd
    to be sure that you are in you home directory

    than

    Code:
    vi .bashrc
    you can substitute
    Code:
    vi
    with your favorite text editor.

    and now at the end of the file you add the source commands.

    Alin

  5. #15
    Join Date
    Sep 2006
    Beans
    2

    Re: HOWTO: Install Intel Fortran 9.0

    One more "stupid" question, how ho run fortran? bacause I did not find the program under Application menu. Sorry!!

  6. #16
    Join Date
    May 2006
    Beans
    6

    Re: HOWTO: Install Intel Fortran 9.0

    intel fortran is a compiler. a tool to generate binary files from source files.

    let us assume that you have a fortran 90 source file test.f90
    the simplest will be somthing like

    Code:
    program hello_world
    implicit none
    
    print *, "hello world"
    end program hello_world
    fortran will help you to generate an application that will write on the screen (standard output) "hello world".

    for that in the command window you will do something like that

    Code:
    ifort -o test test.f90
    than
    Code:
    ./test
    and that's all you have created the first fortran application.


    Alin

    p.s. there are plenty of resource on the web about how to programme using fortran

  7. #17
    Join Date
    Sep 2005
    Beans
    5

    Re: HOWTO: Install Intel Fortran 9.0

    It was mistake on the path. It works.
    Last edited by yuni; October 13th, 2006 at 12:58 AM.

  8. #18
    Join Date
    Oct 2006
    Beans
    1

    Re: HOWTO: Install Intel Fortran 9.0

    i could install succesfully ifort, but i should say that theres one more step for non-english ubuntu boxes, i mean, if you try to execute ifort then it will say something like

    ifort: error: could not find directory in which g++ resides

    i could find at intels webpage an interesting set of solutions, but i just had to set the LC_ALL environment variable to C

    e.g export LC_ALL=C

    note for newbies(like me): this variable should be modified at etc/enviroment

  9. #19
    Join Date
    Oct 2006
    Beans
    2

    Re: HOWTO: Install Intel Fortran 9.0

    Hello every one

    I tried to install Intel Fortran free compiler "9.1" on my laptoop.

    during the installation I get this message.
    ----------------------------------
    Problems with Fortran compiler: Output not equal to < Hello, World! F90>
    See /tmp/test_fc.7127.log for details.

    NOTE: If using a FLOATING or NODE-LOCKED license file, ignore this message.
    Press ENTER to continue.
    ---------------------------------

    Is it NORMAL?
    Can you please help me?
    Thanks

  10. #20
    Join Date
    Sep 2006
    Beans
    29

    Re: HOWTO: Install Intel Fortran 9.0

    in response to the previous poster this is normal, the install script tries to actually compile a little test program and check the output (that's the whole hello world thing). Sadly because the variable setting scripts(ifortvars.sh) in the intel/fce/bin dir don't quite work with ubuntu.

    I think this is because they start with #!/bin/sh while having some syntax which assumes bash. On ubuntu 6.10 #!/bin/sh->dash it's a symlink to dash which seems to not quite work properly with some of the shell commands. I'm no bash/dash guru but this seems stupid to me. Anyway you can fix it by changing it to directly invoke bash: #!/bin/bash.

    I managed to get the C++ compiler installed just fine like this but when i tried to get ifort going i get this error:

    exec: 34: -a: not found

    Anyone know wha's going wrong there?

    Thanks

    Chris
    string computers = "Pentium D 3.4ghz, 2gb ram, 64bit" << "Core Duo 1.2ghz, 1.5gb, 32bit";

Page 2 of 5 FirstFirst 1234 ... 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
  •