编译安装VASP中出现错误:/usr/bin/ld: cannot find -llapack

编译打包和其他
回复
头像
renxinzhi
帖子: 970
注册时间: 2007-11-02 13:46

编译安装VASP中出现错误:/usr/bin/ld: cannot find -llapack

#1

帖子 renxinzhi » 2009-11-15 21:53

我的机器是奔D1.7(1.7*2),使用的是Ubuntu9.10,GFortran编译器,atlas3.6.0_Linux_P4SSE2.tgz库文件,编译安装VASP时出现以下错误:

代码: 全选

gleerat@gleerat-desktop:/tmp/vasp.4.6$ make -f makefile.linux_gfortran
makefile.linux_gfortran:333: warning: overriding commands for target `xcgrad.o'
makefile.linux_gfortran:280: warning: ignoring old commands for target `xcgrad.o'
rm -f vasp gfortran -o vasp  main.o  base.o     mpi.o      smart_allocate.o      xml.o constant.o jacobi.o   main_mpi.o  scala.o asa.o      lattice.o  poscar.o   ini.o      setex.o     radial.o pseudo.o   mgrid.o    mkpoints.o wave.o      wave_mpi.o  symmetry.o symlib.o   lattlib.o  random.o    nonl.o     nonlr.o    dfast.o    choleski2.o mix.o      charge.o   xcgrad.o   xcspin.o    potex1.o   potex2.o metagga.o  constrmag.o pot.o      cl_shift.o force.o    dos.o      elf.o tet.o      hamil.o    steep.o chain.o    dyna.o     relativistic.o LDApU.o sphpro.o  paw.o   us.o ebs.o      wavpre.o   wavpre_noio.o broyden.o dynbr.o    rmm-diis.o reader.o   writer.o   tutor.o xml_writer.o brent.o    stufak.o   fileio.o   opergrid.o stepver.o dipol.o    xclib.o    chgloc.o   subrot.o   optreal.o   davidson.o edtest.o   electron.o shm.o      pardens.o  paircorrection.o optics.o   constr_cell_relax.o   stm.o    finite_diff.o elpol.o    setlocalpp.o aedens.o    fft3dfurth.o fft3dlib.o -L../vasp.4.lib -ldmy ../vasp.4.lib/linpack_double.o -L/opt/Linux_P4SSE2/lib/atlas -llapack -L/opt/Linux_P4SSE2/lib/atlas -lblas  
/usr/bin/ld: cannot find -llapack
collect2: ld returned 1 exit status
make: *** [vasp] Error 1
gleerat@gleerat-desktop:/tmp/vasp.4.6$
这是makefile.linux_gfortran中数学库的内容:

代码: 全选

# Atlas based libraries
#ATLASHOME= /opt/Linux_P4SSE2/lib
BLAS=   -L/opt/Linux_P4SSE2/lib/atlas -lblas
#BLAS=   -L$(ATLASHOME)  -lf77blas -latlas

# use specific libraries (default library path points to other libraries)
#BLAS= $(ATLASHOME)/libf77blas.a $(ATLASHOME)/libatlas.a

# use the mkl Intel libraries for p4 (www.intel.com)
#BLAS=-L/opt/intel/mkl/lib/32 -lmkl_p4  -lpthread

# LAPACK, simplest use vasp.4.lib/lapack_double
#LAPACK= ../vasp.4.lib/lapack_double.o

# use atlas optimized part of lapack
#LAPACK= ../vasp.4.lib/lapack_atlas.o  liblapack libf77blas

# use the mkl Intel lapack.a
#LAPACK= -lmkl_lapack.a  

LAPACK= -L/opt/Linux_P4SSE2/lib/atlas -llapack
请大家帮帮忙找找问题的解决方法。
附件
Screenshot-lib - 文件浏览器.png
上次由 renxinzhi 在 2009-11-15 22:54,总共编辑 1 次。
明察,慎思,笃行
头像
renxinzhi
帖子: 970
注册时间: 2007-11-02 13:46

Re: 编译安装VASP中出现错误:/usr/bin/ld: cannot find -llapack

#3

帖子 renxinzhi » 2009-11-15 22:52

wzssyqa 写了:需要修改 /etc/ld.conf
我改了etvc/ld.so.conf,改为

代码: 全选

/opt/Linux_P4SSE2/lib
可是错误仍然,请问应该怎么办呢?谢谢
Screenshot-etc - 文件浏览器.png
明察,慎思,笃行
头像
renxinzhi
帖子: 970
注册时间: 2007-11-02 13:46

Re: 编译安装VASP中出现错误:/usr/bin/ld: cannot find -llapack

#5

帖子 renxinzhi » 2009-11-16 12:53

wzssyqa 写了:改完之后要运行 sudo ldconfig
还是不行
明察,慎思,笃行
回复