求助安装软件时出现cannot find l**错误,大侠该怎么解决啊?
发表于 : 2011-06-03 14:18
小弟 在ubuntu10.10安装Madagascar(一款地球物理处理开源包,与su类似)时 出现了以下的错误:
首先执行,/configure后,环境检查结果如下:
checking for Python ... /usr/bin/python
checking Python version ... 2.6.6
checking for RSFROOT ... /home/mengdj/tools/RSF
checking for SCons ... /usr/bin/scons
checking SCons version ... v2.0.0.final.0.r5023
Running RSFROOT=/home/mengdj/tools/RSF /usr/bin/scons API=c++,f90 config ...
------------------------
scons: Reading SConscript files ...
checking platform ... (cached) linux [ubuntu]
checking for C compiler ... (cached) gcc
checking if gcc works ... yes
checking if gcc accepts '-std=gnu99 -Wall -pedantic' ... yes
checking if gcc accepts '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ... yes
checking for ar ... (cached) ar
checking for libraries ... ['m']
checking complex support ... yes
checking for X11 headers ... /usr/include
checking for X11 libraries ... /usr/lib/X11
checking for OpenGL ... yes
checking for sfpen ... (cached) xtpen
checking for ppm ... yes
checking for tiff ... yes
checking for GD (PNG) ... yes
checking for GD (GIF) ... yes
checking for plplot ... yes
checking for ffmpeg ... yes
checking for cairo (PNG) ... yes
checking for cairo (SVG) ... yes
checking for cairo (PDF) ... yes
checking for jpeg ... yes
checking for BLAS ... yes
checking for LAPACK ... no
checking for MPI ... (cached) no
checking for Posix threads ... yes
checking for OpenMP ... yes
checking for CUDA ... (cached) no
checking API options ... (cached) ['f90', 'c++']
checking for C++ compiler ... (cached) g++
checking if g++ works ... yes
checking if g++ accepts '-Wall -pedantic' ... yes
checking for F90 compiler ... (cached) gfortran
checking if gfortran works ... yes
checking gfortran type ... (cached) NAGf90Fortran
checking F90 module extension ... (cached) .mod
scons: done reading SConscript files.
scons: Building targets ...
shell_script(["env.sh"], [])
shell_script(["env.csh"], [])
scons: done building targets.
------------------------
执行make install 出现如下错误:
Install file: "build/trip/grid/libtripgrid.a" as "/home/mengdj/tools/RSF/lib/libtripgrid.a"
Install file: "build/plot/plplot/plvpl.rc" as "/home/mengdj/tools/RSF/lib/plvpl.rc"
__header(["build/plot/plplot/plvpl.h"], ["build/plot/plplot/plvpl.c"])
gcc -o build/plot/plplot/plvpl.os -c -O2 -std=gnu99 -Wall -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -fPIC -DRSF_LIB='"/home/mengdj/tools/RSF/lib"' -Ibuild/include -I/usr/include/plplot build/plot/plplot/plvpl.c
gcc -o build/plot/plplot/plvpl.so -pthread -shared build/plot/plplot/plvpl.os -Lbuild/lib -ldrsf -ldrsfplot -lplplotd
/usr/bin/ld: cannot find -ldrsf
/usr/bin/ld: cannot find -ldrsfplot
collect2: ld returned 1 exit status
scons: *** [build/plot/plplot/plvpl.so] Error 1
scons: building terminated because of errors.
make: *** [install] 错误 2
由于编译过程太长,这里只列出了出错的地方,哪位大侠能知道是什么原因吗?这个东西困扰小弟好久了啊
首先执行,/configure后,环境检查结果如下:
checking for Python ... /usr/bin/python
checking Python version ... 2.6.6
checking for RSFROOT ... /home/mengdj/tools/RSF
checking for SCons ... /usr/bin/scons
checking SCons version ... v2.0.0.final.0.r5023
Running RSFROOT=/home/mengdj/tools/RSF /usr/bin/scons API=c++,f90 config ...
------------------------
scons: Reading SConscript files ...
checking platform ... (cached) linux [ubuntu]
checking for C compiler ... (cached) gcc
checking if gcc works ... yes
checking if gcc accepts '-std=gnu99 -Wall -pedantic' ... yes
checking if gcc accepts '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ... yes
checking for ar ... (cached) ar
checking for libraries ... ['m']
checking complex support ... yes
checking for X11 headers ... /usr/include
checking for X11 libraries ... /usr/lib/X11
checking for OpenGL ... yes
checking for sfpen ... (cached) xtpen
checking for ppm ... yes
checking for tiff ... yes
checking for GD (PNG) ... yes
checking for GD (GIF) ... yes
checking for plplot ... yes
checking for ffmpeg ... yes
checking for cairo (PNG) ... yes
checking for cairo (SVG) ... yes
checking for cairo (PDF) ... yes
checking for jpeg ... yes
checking for BLAS ... yes
checking for LAPACK ... no
checking for MPI ... (cached) no
checking for Posix threads ... yes
checking for OpenMP ... yes
checking for CUDA ... (cached) no
checking API options ... (cached) ['f90', 'c++']
checking for C++ compiler ... (cached) g++
checking if g++ works ... yes
checking if g++ accepts '-Wall -pedantic' ... yes
checking for F90 compiler ... (cached) gfortran
checking if gfortran works ... yes
checking gfortran type ... (cached) NAGf90Fortran
checking F90 module extension ... (cached) .mod
scons: done reading SConscript files.
scons: Building targets ...
shell_script(["env.sh"], [])
shell_script(["env.csh"], [])
scons: done building targets.
------------------------
执行make install 出现如下错误:
Install file: "build/trip/grid/libtripgrid.a" as "/home/mengdj/tools/RSF/lib/libtripgrid.a"
Install file: "build/plot/plplot/plvpl.rc" as "/home/mengdj/tools/RSF/lib/plvpl.rc"
__header(["build/plot/plplot/plvpl.h"], ["build/plot/plplot/plvpl.c"])
gcc -o build/plot/plplot/plvpl.os -c -O2 -std=gnu99 -Wall -pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fopenmp -fPIC -DRSF_LIB='"/home/mengdj/tools/RSF/lib"' -Ibuild/include -I/usr/include/plplot build/plot/plplot/plvpl.c
gcc -o build/plot/plplot/plvpl.so -pthread -shared build/plot/plplot/plvpl.os -Lbuild/lib -ldrsf -ldrsfplot -lplplotd
/usr/bin/ld: cannot find -ldrsf
/usr/bin/ld: cannot find -ldrsfplot
collect2: ld returned 1 exit status
scons: *** [build/plot/plplot/plvpl.so] Error 1
scons: building terminated because of errors.
make: *** [install] 错误 2
由于编译过程太长,这里只列出了出错的地方,哪位大侠能知道是什么原因吗?这个东西困扰小弟好久了啊