Installation Fortran
Bonjour,
Je cherche a installer Fortran77 (ou 90) sous linux (ubuntu 12.04). Comment faire, et quelles sont les commandes (sous linux) pour compiler et exécuter un fichier fortran.
Je cherche a installer Fortran77 (ou 90) sous linux (ubuntu 12.04). Comment faire, et quelles sont les commandes (sous linux) pour compiler et exécuter un fichier fortran.
1 réponse
-
Pour trouver le paquet approprié, tu peux faire une recherche avec apt-cache :
(mando@silk) (~) $ apt-cache search g77 f2c - FORTRAN 77 to C/C++ translator ratfor - Rational Fortran preprocessor for Fortran 77
Donc je dirais :
sudo apt-get update sudo apt-get upgrade sudo apt-get install f2c
Le compilateur semble s'appeler f2c ou fc :
(mando@silk) (~) $ apt-file list f2c | grep bin f2c: /usr/bin/f2c f2c: /usr/bin/fc
Quelques compléments ici :
http://doc.ubuntu-fr.org/fortran
Bonne chance