我正在尝试从 DTU 编译这个项目。该项目需要安装PETSc。
我已将 PETSc 安装到/Users/hornymoose/petsc-3.13.3/
我已经从 GitHub 中提取了 zip 到/Users/hornymoose/dtu
DTU 项目makefile
有以下几行:
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
include ${PETSC_DIR}/lib/petsc/conf/test
在这些行中,{PETSC_DIR}
被替换为用户的 PETSc 安装目录。因此,我将这些行更改为:
include $/Users/hornymoose/petsc-3.13.3/lib/petsc/conf/variables
include $/Users/hornymoose/petsc-3.13.3/lib/petsc/conf/rules
include $/Users/hornymoose/petsc-3.13.3/lib/petsc/conf/test
为了编译代码,我make topopt
在终端中编写。这样做会产生:
makefile:13: Users/hornymoose/petsc-3.13.3/lib/petsc/conf/variables: No such file or directory
makefile:14: Users/hornymoose/petsc-3.13.3/lib/petsc/conf/rules: No such file or directory
makefile:15: Users/hornymoose/petsc-3.13.3/lib/petsc/conf/test: No such file or directory
make: *** No rule to make target `Users/jhutopopt/petsc-3.13.3/lib/petsc/conf/test'. Stop.
我已经回去手动检查了Users/hornymoose/petsc-3.13.3/lib/petsc/conf/variables
, ...rules
, 并且...test
肯定存在并且没有错误。
为什么我会收到此错误?我是否在我的 中错误地指示了目录makefile
?中的语法makefile
不正确吗?
我确信有一个简单的解决方案,我对在 MacOS 中使用终端非常陌生。先感谢您!