2014-12-04 58 views
0

我已經相應地更改了ARmake.inc文件。該平臺更改爲LINUX。以下是問題:ARPACK不在Ubuntu中編譯12.04

[email protected]:/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 
[email protected]:/home/sid/Downloads/ARPACK# 

回答

1

首先直接創建源下${HOME} directory.Right現在我猜它${HOME}/Downloads下。 ${HOME}對你來說是/home/sid/

然後做cd ARPACK

請確保您有gfortran而作。 您可以輸入以下內容進行檢查: gfortran --versionmake --version

此外開放ARmake.inc和變化主頁變量

家= $ {HOME}/ARPACK

現在,在終端輸入以下命令:

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

確保ARPACK直接在/home/sid之下,而不在下載中。