MATLAB Answers

SuiteSparse Installation: Cannot open include file: 'regex.h'

조회 수: 16(최근 30일)
Dylan Zaluski
Dylan Zaluski 19 Oct 2018
답변: Royi Avital 25 Apr 2019
I am having issues installing SuiteSparse in Matlab. I am using the 5.3 version, downloaded from, and using the Visual Studio 2017 C++ compiler. When I run SuiteSparse_install, I get the following error:
c:\users\dylan\documents\school\masters\suitesparse\metis-5.1.0\gklib\GKlib.h(68): fatal error C1083: Cannot open include file: 'regex.h': No such file or directory
And UMFPACK, KLU, CHOLMOD, SuiteSparseQR fail to install. Has anyone got any experience with this, or could point me in the right direction for assistance? I need the sparse2 and spqr functions for my code, as I have a very large over-determined, sparse system to solve, and it is giving Matlab's mldivide a rough time. Thanks!

  댓글 수: 3

Jorge Barrasa Fano
Jorge Barrasa Fano 4 Mar 2019
Hi Dylan,
I've the exact same problem. Have you managed to solve it so far?
Dylan Zaluski
Dylan Zaluski 4 Mar 2019
Hi Jorge,
Yes, I actually did get this resolved some time ago, after talking to Tim Davis (SuiteSparse's creator). The issue lies with the METIS package that is included with SuiteSparse. When you download a copy, before building the package, delete the entire folder named "METIS" (might be a version number along with the name), and then try building it again. That worked like a charm for me.
Jorge Barrasa Fano
Jorge Barrasa Fano 6 Mar 2019
Hi Dylan,
Thanks for your reply :) I ended up doing the same and it worked.

로그인 to comment.


Royi Avital
Royi Avital 25 Apr 2019
Whny would you need SuiteSparse in MATLAB?
I though MATLAB uses SuiteSparse to begin with.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by