我正在尽力从源头上安装petsc。我所做的是:
$ git clone -b maint https://bitbucket.org/petsc/petsc petsc
$ cd petsc/
$ pwd
/Users/kilojoules/install_petsc/petsc
$ export PETSC_DIR=/Users/kilojoules/install_petsc/petsc
$ make
# everything runs fine
$ make install
*** Using PETSC_DIR=/Users/kilojoules/install_petsc/petsc PETSC_ARCH=arch-darwin-c-debug ***
********************************************************************
Incorrect prefix usage. Specified destDir same as current PETSC_DIR/PETSC_ARCH
********************************************************************
make: *** [install] Error 1我不明白我做错了什么。Petsc文件没有提到指定目标目录。当我执行make all时,它会促使我执行一个make test,这会提示我执行一个make streams,这不会提示我做任何其他事情。如何完成从源代码安装此软件包?是否有指定安装目的地的方法?
发布于 2017-07-26 22:06:04
如果要设置目标目录,请使用前缀。否则,mae install就没有意义了,因为您已经在目标目录中安装了它。
./configure --prefix=/usr/local/petsc
make all
make installhttps://stackoverflow.com/questions/45332075
复制相似问题