【问题标题】:ARPACK is not compiling in Ubuntu 12.04ARPACK 未在 Ubuntu 12.04 中编译
【发布时间】:2015-02-02 11:59:44
【问题描述】:

我已经相应地更改了 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# 

【问题讨论】:

    标签: ubuntu-12.04 arpack


    【解决方案1】:

    首先直接在${HOME} 目录下创建源代码。现在我猜它在${HOME}/Downloads 下。 ${HOME} 你是/home/sid/

    那就cd ARPACK

    确保你有 gfortran 和 make。 您可以通过键入以下内容进行检查: gfortran --versionmake --version

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

    home = ${HOME}/ARPACK

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

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

    确保ARPACK 直接在/home/sid 下,而不是在下载中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-05
      • 2012-12-09
      • 2012-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多