首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ARPACK没有在Ubuntu12.04中编译

ARPACK没有在Ubuntu12.04中编译
EN

Stack Overflow用户
提问于 2014-12-04 14:45:53
回答 1查看 728关注 0票数 0

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

代码语言:javascript
运行
复制
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# 
EN

回答 1

Stack Overflow用户

发布于 2015-01-27 17:49:49

首先在${HOME} directory.Right下直接创建源代码,现在我猜是在${HOME}/Downloads下面。你的${HOME}/home/sid/

那就做cd ARPACK

确保你有gfortran并做好。您可以通过键入:gfortran --versionmake --version来检查它。

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

home = ${HOME}/ARPACK

现在,在终端中键入以下命令:

使FC=gfortran FFLAGS= MAKE=/usr/bin/make =$HOME/ARPACK/libarPack.a lib

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27296858

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档