我在Ubuntu上安装了Lapack-3.6.1。make时出现问题,缺少文件(cholrl.a)。错误信息是这样的。
make[1]: Leaving directory '/usr/local/src/lapack-3.6.1/BLAS/SRC' ( cd SRC/VARIANTS ; make) make[1]: Entering directory '/usr/local/src/lapack-3.6.1/SRC/VARIANTS' gfortran -O2 -frecursive -c cholesky/RL/cpotrf.f -o cholesky/RL/cpotrf.o gfortran -O2 -frecursive -c cholesky/RL/dpotrf.f -o cholesky/RL/dpotrf.o gfortran -O2 -frecursive -c cholesky/RL/spotrf.f -o cholesky/RL/spotrf.o gfortran -O2 -frecursive -c cholesky/RL/zpotrf.f -o cholesky/RL/zpotrf.o ar cr LIB/cholrl.a cholesky/RL/cpotrf.o cholesky/RL/dpotrf.o cholesky/RL/spotrf.o cholesky/RL/zpotrf.o ar: LIB/cholrl.a: No such file or directory Makefile:38: recipe for target 'cholrl' failed make[1]: * [cholrl] Error 1 make[1]: Leaving directory '/usr/local/src/lapack-3.6.1/SRC/VARIANTS' Makefile:39: recipe for target 'variants' failed make: * [variants] Error 2
你有解决办法吗?
最佳答案
我自己创建LIB
目录对我有用。因此,在 SRC/VARIANTS
中输入 mkdir LIB
。
关于makefile - make 期间缺少文件 (cholrl.a),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38757653/