Bonjour,
Je viens de ré-installer ma Mandriva (rarissime) et gfortran a dû suivre.
J'ai récupéré gfortran-linux.tar.gz il y a longtemps, qui vient avec le fichier
suivant, bien pratique, qui m'a permi une installation simple et fonctionnelle
sur mon ancien mandriva one (fin 2007, j'ai la 2008 maintenant) :
je n'ai pas mis tout le fichier, le reste dit comment dé-gziper et détarer, ce que
j'arrive encore à faire.
De ce qui suit, j'ai les questions suivantes .
pour le v)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 (v) You will need to set LD_LIBRARY_FLAG or compile with -static. (vi) Assuming that you are using bash, find your .bash_profile and add the line, export LD_LIBRARY_PATH=$mypath/irun/lib alternatively, invoke bash at the command line and enter this previous line. You should have an operational gfortran by now. I just went through this process, with $mypath set to /tmp and it worked just fine.
Je n'ai jamais eu à utiliser -static (toujours utilisé gfortran). Je suppose alors qu'il faut "set LD_LIBRARY_FLAG", ce qui veut dire quoi? Et comment ?
Pour le vi)
Mon bash contient :
PATH=$PATH:$HOME/FORTRAN/irun/bin:/bin:.
export LD_LIBRARY_PATH=/home/guillaume/FORTRAN/irun/lib
export PATH
et mon $HOME est /home/guillaume
Les problèmes :
quand j'ouvre un shell je dois : source .bash_profile pour utiliser gfortran
ceci n'était pas le cas avant la ré-instal).
ensuite, plus ennuyeux :
[guillaume@localhost CODE]$ gfortran test.f
gfortran: error trying to exec 'as': execvp: No such file or directory
avec test.f
(code test, tous les autres donnent la même chose)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 program h write (*,*) "hi there" stop end
Je ne comprends pas l'erreur.
Sachant que
[guillaume@localhost CODE]$ gfortran --version
GNU Fortran 95 (GCC) 4.2.0 20060904 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.
et que
/home/guillaume/FORTRAN/irun/bin
[guillaume@localhost bin]$ ls
cpp* gccbug* gfortran* i386-linux-gcc-4.2.0*
gcc* gcov* i386-linux-gcc* i386-linux-gfortran*
J'ai manifestement fait une bêtise mais je ne vois pas laquelle.
Merci pour toute aide, étant complètement bloqué!
N






Répondre avec citation

Partager