/usr/bin/ld:找不到-llapack [英] /usr/bin/ld: cannot find -llapack
问题描述
我正在寻求有关ubuntu 14.04中安装的帮助.我正在PC中安装软件包.他们有自己的makefile.我必须运行make.
I am seeking help for installation in ubuntu 14.04. I am installing a package in my pc. They have their makefiles. I have to run make.
当我这样做的时候,我发现了类似.....
When I did I found error like.....
gfortran -O2 -fopenmp -msse2 -o nmbnd.run p_nmbnd.o i_main.o m_getwsr.o ../IOLIB/*.o ../ATOM/*.o ../BNDASA/*.o ../EXTENS/*.o ../FINDES/*.o ../LATTICE/*.o ../SAMPLE/*.o ../TETRA/*.o ../IOCTRL/*.o ../LMIO/*.o ../MAINA/*.o ../NMTO/*.o ../SYM/*.o ../TBSTR/*.o ../CHAPOT/*.o -L/usr/share/doc/liblapack -llapack -L/usr/share/doc/libblas -lblas
/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
make[2]: *** [nmbnd.run] Error 1
make[2]: Leaving directory `/home/santuphys/NMTO-47.ZB.28/06.gfort/MAIN'
make[1]: *** [cleanmake] Error 2
make[1]: Leaving directory `/home/santuphys/NMTO-47.ZB.28/06.gfort/MAIN'
make: *** [ooo.dep] Error 2
我在此论坛上尝试了有关链接的所有其他类似问题,但无法解决.我在PC中也指定了Lapack
和Lblas
的路径,也写...
I tried all the other similar questions in this forum about link, but I could not resolve it. I specified the path to Lapack
and Lblas
in my pc also writing...
LAPACK_LIB= -L/usr/lib/ -llapack -lblas
它没有用.请帮助我解决这个问题.
It did not work. Please help me with this issue.
提前谢谢.
推荐答案
在Ubuntu 14.04上,请确保您具有软件包
On Ubuntu 14.04 make sure you have the packages
- liblapack-dev
- liblapack3
- libopenblas-base
- libopenblas-dev
已安装.之后,-L/usr/lib -llapack -lblas"应该可以工作.还要注意,正如在另一个答案中已经提到的那样,在显示的输出中,您有"-L/usr/share/doc/liblacpack -L/usr/share/doc/libblas",这当然不是您想要的.
installed. After that, "-L/usr/lib -llapack -lblas" should work. Also note that, as already mentioned in another answer, in the output you showed, you have "-L/usr/share/doc/liblacpack -L/usr/share/doc/libblas", which is certainly not what you want.
这篇关于/usr/bin/ld:找不到-llapack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!