Probleme avec Lapack en fortran 90

Fermé
matthieuabristol - 26 oct. 2007 à 11:58
 salma fawaze - 1 mai 2008 à 21:04
Bonjour,
Je compile un programme pour diagonaliser une matrice en fortran 90, j'utilise la sub routine zheev de Lapack, sa compile tres bien mais apres quand je veux executer l,executable a.out j,ai un message d'erreur du type : a.out: error while loading shared libraries: libmkl_lapack.so: cannot open shared object file: No such file or directory.
Je comprend pas car libmkl_lapack.so est avec toute les autres librairie Lapack.
Merci de votre aide,
Matthieu

10 réponses

dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
26 oct. 2007 à 12:23
hello
en exécutant ldd a.out le chemin de la librairie est correct ?
la variable LD_LIBRARY_PATH est correct ?
0
matthieuabristol Messages postés 9 Date d'inscription vendredi 26 octobre 2007 Statut Membre Dernière intervention 7 janvier 2008
26 oct. 2007 à 12:32
merci pour ta reponce, mais sa ne marche pas je pence que c'est un probleme de PATH car j'obtient le message suivant: matthieu@theo1-pc8:~/Desktop/Factorisation/prog> ldd a.out
libmkl_lapack.so => not found
libguide.so => /opt/intel/fce/10.0.025/lib/libguide.so (0x00002ad43a7b6000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ad43a98b000)
libm.so.6 => /lib64/libm.so.6 (0x00002ad43aba7000)
libc.so.6 => /lib64/libc.so.6 (0x00002ad43adfd000)
/lib64/ld-linux-x86-64.so.2 (0x00002ad43a76d000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ad43b13f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002ad43b34e000)

Dois je changer le PATH dans le bachrc et si oui comment ?
j'ai encore une autre question : sa fait quoi la commande ldd ?
Merci d'avence pour ta reponce,
Matthieu
0
dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
26 oct. 2007 à 13:51
ldd - print shared library dependencies
ldd affiche les librairies dont a besoin un exécutable.

c'est la variable LD_LIBRARY_PATH qui définit la location des librairies.
en bash: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path de libmkl_lapack.so
0
matthieuabristol
29 oct. 2007 à 12:48
Bonjour,
sa ne marche toujours pas, pourtant j'ai changer le basch
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
29 oct. 2007 à 13:48
que répond echo $LD_LIBRARY_PATH ?
et /sbin/ldconfig -p
0
matthieuabristol
29 oct. 2007 à 14:00
Bonjour,
Pour echos... sa repond :
/opt/intel/fce/10.0.025/lib:/opt/intel/cce/10.0.025/lib:/opt/intel/fce/10.0.025/lib:/opt/intel/cce/10.0.025/lib:/net/software/pgi_5.2/linux86-64/5.2/lib::/net/software/lf9562/lib:/usr/lib64/gcc/x86_64-suse-linux/4.0.2:/opt/intel/mkl/9.1/lib/em64t/libmkl_lapack.so:/opt/intel/idbe/10.0.025/bin:/opt/intel/fce/10.0.025/bin:/opt/intel/cce/10.0.025/bin:.:/home/matthieu/bin:/opt/intel/fc/10.0.025/bin:/opt/intel/idbe/10.0.025/bin:/opt/intel/fce/10.0.025/bin:/opt/intel/cce/10.0.025/bin:.:/home/matthieu/bin:/opt/intel/fc/10.0.025/bin:/net/software/pgi_5.2/linux86-64/5.2/bin:./:/home/matthieu/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/net/software/mpich-1.2.6/bin:/net/software/maple4/bin:/net/software/maple5/bin:/net/software/maple6/bin:/net/software/maple7/bin:/net/software/maple8/bin:/net/software/maple9/bin:/net/software/maple9.5/bin:/net/software/maple10/bin:/net/software/lf9562/bin:/net/software/nedit-5.4-linux-x86:/net/software/gOpenMol-2.32/bin:/net/software/matlab/bin:/net/software/intel/64bit/bin
...
je comprend pas car j'ai verifier la librairie est bien a cet endroi
pour ldconfig j'ai pas trouver libmkl dans la liste
0
dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
29 oct. 2007 à 14:14
que répond ls -l /opt/intel/mkl/9.1/lib/em64t/libmkl_lapack.so
ldconfig permet de gérer la liste des lib à charger, comme avec LD_LIBRARY_PATH
que répond file .a.out ?
que répond ldd a.out avec le bon LD_LIBRARY_PATH
mais il y a un mélange dans LD_LIBRARY_PATH , il ya des bin de PATH, c'est pas bon
changer /opt/intel/mkl/9.1/lib/em64t/libmkl_lapack.so par /opt/intel/mkl/9.1/lib/em64t/
LD_LIBRARY_PATH est un liste de répértoires pas de fichiers
0
matthieuabristol
29 oct. 2007 à 14:23
Bonjour,
a.out repond :
matthieu@theo1-pc8:~/Desktop/Factorisation/prog> ifort diago.f90 -L/opt/intel/mkl/9.1/lib/em64t -lmkl_lapack -lmkl_em64t -lguide -lpthread
matthieu@theo1-pc8:~/Desktop/Factorisation/prog> a.out
a.out: error while loading shared libraries: libmkl_lapack.so: cannot open share d object file: No such file or directory
matthieu@theo1-pc8:~/Desktop/Factorisation/prog> ldd a.out
libmkl_lapack.so => not found
libguide.so => /opt/intel/fce/10.0.025/lib/libguide.so (0x00002b8f4f02c0 00)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b8f4f200000)
libm.so.6 => /lib64/libm.so.6 (0x00002b8f4f41b000)
libc.so.6 => /lib64/libc.so.6 (0x00002b8f4f672000)
/lib64/ld-linux-x86-64.so.2 (0x00002b8f4efe2000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b8f4f9b4000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b8f4fbc2000)
file a.out repond :
matthieu@theo1-pc8:~/Desktop/Factorisation/prog> file a.out
a.out: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
et ls-l/opt/...:
matthieu@theo1-pc8:/> ls -l/opt/intel/mkl/9.1/lib/em64t/libmkl_lapack.so
ls: invalid option -- /
Merci encore pour t'occuper de mon probleme
0
dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
29 oct. 2007 à 14:40
et ca:
changer /opt/intel/mkl/9.1/lib/em64t/libmkl_lapack.so par /opt/intel/mkl/9.1/lib/em64t/
LD_LIBRARY_PATH est un liste de répértoires pas de fichiers
0
salma fawaze
1 mai 2008 à 21:04
bonjour
quelqu'un peut me dire ou je peut trouver les dernier mise a jour de fortran 90 sous linux (intel fortran compiler), et comment je peut le telecharger.
a+
salma
0