Find the answer to your Linux question:
Results 1 to 6 of 6
Hey, I need to know if I have a fortran compiler installed onto my ubuntu box. Are there any command lines that might reveal whether I have this compiler installed ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    1

    How to find out if I have a fortran compiler installed on my ubuntu 9.04 box?

    Hey,
    I need to know if I have a fortran compiler installed onto my ubuntu box. Are there any command lines that might reveal whether I have this compiler installed on my system or not? Does ubuntu come with a fortran compiler natively? This is a freshly installed system.

    -L188

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    It is unlikely to be installed by default. You can install gfortran by opening a terminal and running the folowing command

    "sudo apt-get install gfortran" (without the quotes)

    If you are happier with a GUI, use Synaptic to search for gfortran.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Welcome to the forums!

    You can check this HowTo for installing various compilers on Ubuntu:

    https://help.ubuntu.com/community/InstallingCompilers
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    Fortran 77 is part of the gnu compiler suite (gcc). Look for f77, gfortran, or g77. If they aren't there, then you can install it with apt-get: sudo apt-get install gcc-gfortran
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Linux Newbie egan's Avatar
    Join Date
    Feb 2009
    Location
    Mountain View, CA
    Posts
    132
    In general, if you are looking for a command and you know what it does, you use the apropos command, i.e.

    apropos fortran | less

    Will list all the commands that have the word fortran in the their man pages, and will show their title as well so you can acertain their use.

  6. #6
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    Quote Originally Posted by egan View Post
    In general, if you are looking for a command and you know what it does, you use the apropos command, i.e.

    apropos fortran | less

    Will list all the commands that have the word fortran in the their man pages, and will show their title as well so you can acertain their use.
    Nice! That's one for the old memory bank
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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