ARPACK没有在Ubuntu 12.04中编译

时间:2014-12-04 14:45:54

标签: ubuntu-12.04 arpack

我已相应更改了ARmake.inc文件。该平台改为LINUX。以下是问题所在:

root@sid-OptiPlex-7010:/home/sid/Downloads/ARPACK# make lib
/bin/sh: 4: cd: can't cd to home/sid/Downloads/ARPACK/BLAS
Making lib in home/sid/Downloads/ARPACK/BLAS
make[1]: Entering directory `/home/sid/Downloads/ARPACK'
Unknown target single, try:  make help
Unknown target double, try:  make help
Unknown target complex, try:  make help
Unknown target complex16, try:  make help
make[1]: Leaving directory `/home/sid/Downloads/ARPACK'
/bin/sh: 4: cd: can't cd to home/sid/Downloads/ARPACK/LAPACK
Making lib in home/sid/Downloads/ARPACK/LAPACK
make[1]: Entering directory `/home/sid/Downloads'
make[1]: *** No rule to make target `single'.  Stop.
make[1]: Leaving directory `/home/sid/Downloads'
/bin/sh: 4: cd: can't cd to home/sid/Downloads/ARPACK/UTIL
Making lib in home/sid/Downloads/ARPACK/UTIL
make[1]: Entering directory `/home/sid'
make[1]: *** No rule to make target `single'.  Stop.
make[1]: Leaving directory `/home/sid'
/bin/sh: 4: cd: can't cd to home/sid/Downloads/ARPACK/SRC
Making lib in home/sid/Downloads/ARPACK/SRC
make[1]: Entering directory `/home'
make[1]: *** No rule to make target `single'.  Stop.
make[1]: Leaving directory `/home'
ranlib home/sid/Downloads/ARPACK/libarpack_LINUX.a
ranlib: 'home/sid/Downloads/ARPACK/libarpack_LINUX.a': No such file
make: *** [arpacklib] Error 1
root@sid-OptiPlex-7010:/home/sid/Downloads/ARPACK# 

1 个答案:

答案 0 :(得分:1)

首先直接在${HOME}目录下创建源。现在我猜它在${HOME}/Downloads下。 ${HOME}

代表你/home/sid/

然后执行cd ARPACK

确保你有gfortran和make。 你可以输入以下命令来检查: gfortran --versionmake --version

同时打开ARmake.inc并将home变量更改为

  
    

home = $ {HOME} / ARPACK

  

现在在终端中输入以下命令:

  

make FC = gfortran FFLAGS = MAKE = / usr / bin / make ARPACKLIB = $ HOME / ARPACK / libarpack.a lib

确保ARPACK直接位于/home/sid下,而不是下载。