gpt4 book ai didi

c - 使用 Cygwin-Windows 安装 C Umfpack 错误

转载 作者:行者123 更新时间:2023-11-30 19:14:16 28 4
gpt4 key购买 nike

我正在学习 C,我想使用 Umfpack 库。我从这里下载了软件包 http://faculty.cse.tamu.edu/davis/suitesparse.html

我尝试使用 makemake -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:\cygwin64\bin\cc, 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

我在google上搜索了很长时间,但没有找到解决方案。有人可以帮我解决这个问题吗?谢谢。

最佳答案

您是否阅读了 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:\ 驱动器中的任何内容?

关于c - 使用 Cygwin-Windows 安装 C Umfpack 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34392142/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com