0

それに応じて 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# 
4

1 に答える 1

1

${HOME}最初にディレクトリ直下にソースを作成します${HOME}/Downloads${HOME}あなたにとっては/home/sid/

それからするcd ARPACK

gfortran と make があることを確認してください。: gfortran --versionまたはと入力して確認できますmake --version

また、ARmake.inc を開き、ホーム変数を

ホーム = ${HOME}/ARPACK

ターミナルで次のコマンドを入力します。

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

ダウンロードではなく、ARPACKすぐ下にあることを確認してください。/home/sid

于 2015-01-27T17:49:49.760 に答える