我正在学习C,我想使用Umfpack
库。我从这里下载了软件包http://faculty.cse.tamu.edu/davis/suitesparse.html
我尝试使用make
和make -f Makefile
命令进行编译,但是出现了以下错误:
$ make -f Makefile
( cd Lib ; C:/cygwin64/bin/make )
make[1]: Entering directory 'E:/SuiteSparse/UMFPACK/Lib'
cc -O3 -fexceptions -fPIC -DNCHOLMOD -I../Include -I../Source -I../../AMD/Include -I../../SuiteSparse_config -I../../CHOLMOD/Include -DDINT -c ../Source/umf_analyze.c -o umf_i_analyze.o
GNUmakefile:104: recipe for target 'umf_i_analyze.o' failed
process_begin: CreateProcess(C:cygwin64bincc, cc -O3 -fexceptions -fPIC -DNCHOLMOD -I../Include -I../Source -I../../AMD/Include -I../../SuiteSparse_config -I../../CHOLMOD/Include -DDINT -c ../Source/umf_analyze.c -o umf_i_analyze.o, ...) failed.
make (e=5): Access is denied.
make[1]: *** [umf_i_analyze.o] Error 5
make[1]: Leaving directory 'E:/SuiteSparse/UMFPACK/Lib'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2
我花了很长时间在谷歌上搜索解决方案,但没有找到。有人能帮我做这个吗。谢谢
您是否在README
文件的子目录UMFPACK
中阅读了这些说明?
快速启动(Unix或带有Cygwin的Windows):
To compile, test, and install both UMFPACK and AMD, the UMFPACK and AMD
directories must be in the same parent directory. To configure, edit the
SuiteSparse_config/SuiteSparse_config.mk file (otherwise, you may get
warnings that the BLAS (dgemm, etc) are not found). You may use
UMFPACK_CONFIG = -DNBLAS in the SuiteSparse_config/SuiteSparse_config.mk
file, to avoid using the BLAS, but UMFPACK will be slow. Next, cd to this
directory (UMFPACK) and type "make". To compile and run a FORTRAN demo
program for Harwell/Boeing matrices, type "make hb". To compile a FORTRAN
main program that calls the 32-bit C-callable UMFPACK library, type "make
fortran". When done, type "make clean" to remove unused *.o files (keeps
the compiled libraries and demo programs). See the User Guide
(Doc/UserGuide.pdf), or ../SuiteSparse_config/SuiteSparse_config.mk for
more details (including options for compiling in 64-bit mode).
你遵守那些指示了吗?
您注意到了吗,makefile从来不会调用E:
驱动器中的任何内容?