error in mexing a file from external source
이전 댓글 표시
Dear all
I am trying to use glasso for matlab, downloaded from: http://www-stat.stanford.edu/~tibs/glasso/ . I unzipped the file, set the matlab path to the unzipped file and tried to run the function GraphicalLasso.m from the command window, where I got the following error message: ??? Error using ==> glasso at 68 mex file absent, type 'mex glasso.F' to compile
I typed mex glasso.F to the command window and a second error message appeared: >> mex glasso.F
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: 'glasso.F' not found.
??? Error using ==> mex at 222 Unable to complete successfully.
The same error appears when I try >> mex glasso instead of >> mex glasso.F
I am using MATLABR2010a on a windows 32 bit machine. Any suggestions? (I have already contacted the code author but he didn't reply, yet). Thanks in advance.
댓글 수: 2
Kaustubha Govind
2013년 7월 17일
Did you cd into the directory where the file exists?
Manthos Vogiatzoglou
2013년 7월 17일
답변 (1개)
Do you have a Fortran compiler installed? LCC is a C-compiler, which cannot compiler .F files.
댓글 수: 4
Manthos Vogiatzoglou
2013년 7월 17일
James Tursa
2013년 7월 17일
You can check to see what MATLAB knows about by doing the following:
mex -setup
(then press ENTER)
You will see a list of supported compilers that MATLAB knows about. It is likely that Fortran is not listed in your case. It does not come with MATLAB and you have to install it yourself.
Manthos Vogiatzoglou
2013년 7월 17일
Friedrich
2013년 7월 18일
On Windows there is not free of charge fortran compiler. The list of Supported compiler can be found here:
So you would need the Intel Visual Fortran 10.1 or 11.1
카테고리
도움말 센터 및 File Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!