error in mexing a file from external source

4 visualizzazioni (ultimi 30 giorni)
Manthos Vogiatzoglou
Manthos Vogiatzoglou il 17 Lug 2013
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 Commenti
Kaustubha Govind
Kaustubha Govind il 17 Lug 2013
Did you cd into the directory where the file exists?
Manthos Vogiatzoglou
Manthos Vogiatzoglou il 17 Lug 2013
No I didn't. After your comment I changed the current folder to the file where glasso.F is located and I got the following error:
>> mex glasso.F lcc preprocessor error: glasso.F:58 Could not find include file "fintrf.h"
Error glasso.F: 2 syntax error; found `c' expecting `;'
Error glasso.F: 2 syntax error; found `The' expecting `;'
Error glasso.F: 2 syntax error; found `Matlab' expecting `;'
Error glasso.F: 2 syntax error; found `mex' expecting `;'
Error glasso.F: 2 syntax error; found `interface' expecting `;'
Error glasso.F: 2 syntax error; found `for' expecting `;'
Error glasso.F: 2 skipping `for'
Error glasso.F: 2 syntax error; found `Lasso' expecting `;'
Error glasso.F: 2 syntax error; found `algorithm' expecting `;'
Error glasso.F: 3 syntax error; found `c' expecting `;'
Error glasso.F: 3 syntax error; found `Written' expecting `;'
Error glasso.F: 3 syntax error; found `by' expecting `;' Error glasso.F: 3 syntax error; found `:' expecting `;'
Error glasso.F: 3 skipping `:' Error glasso.F: 3 syntax error; found `Karshenas' expecting `;'
Error glasso.F: 3 illegal character `@'
Error glasso.F: 3 syntax error; found `fi' expecting `)'
Error glasso.F: 3 skipping `fi' `.' `upm' `.' `es' Error glasso.F: 4 extraneous old-style parameter list Error glasso.F: 4 too many errors
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Compile of 'glasso.F' failed.
thanks for the usefull comment.

Accedi per commentare.

Risposte (1)

Jan
Jan il 17 Lug 2013
Modificato: Jan il 17 Lug 2013
Do you have a Fortran compiler installed? LCC is a C-compiler, which cannot compiler .F files.
  4 Commenti
Manthos Vogiatzoglou
Manthos Vogiatzoglou il 17 Lug 2013
Thank you, Jan and James for your comments. I spent the last couple of hours searching for compilers and stuff in the web and from what I understand there isn't any, free of charge, fortran compiler supported by matlab. Am I correct? If I am not, please elaborate!
Friedrich
Friedrich il 18 Lug 2013
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

Accedi per commentare.

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by