MATLAB Answers

0

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

Asked by Dylan Zaluski on 19 Oct 2018
Latest activity Answered by Royi Avital on 25 Apr 2019
I am having issues installing SuiteSparse in Matlab. I am using the 5.3 version, downloaded from http://faculty.cse.tamu.edu/davis/suitesparse.html, 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 Comments

Hi Dylan,
I've the exact same problem. Have you managed to solve it so far?
Thanks,
Jorge
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.
Hi Dylan,
Thanks for your reply :) I ended up doing the same and it worked.

Sign in to comment.

1 Answer

Answer by Royi Avital on 25 Apr 2019

Whny would you need SuiteSparse in MATLAB?
I though MATLAB uses SuiteSparse to begin with.

  0 Comments

Sign in to comment.