Jonatnil / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 0 forks source link

glmnet does not run on mac os X 64 bit #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

 x=randn(100,20); y=randn(100,1); fit=glmnet(x,y);

What is the expected output? What do you see instead?

it shoudl return a struct. Instead  it returns

> x=randn(100,20); y=randn(100,1); fit=glmnet(x,y);
??? Invalid MEX-file 
'/Users/kpmurphy/pmtksupport/glmnet-matlab/glmnetMex.mexmaci64': 
dlopen(/Users/kpmurphy/pmtksupport/glmnet-matlab/glmnetMex.mexmaci64, 1):
Library not loaded: /usr/local/lib/libgfortran.2.dylib
  Referenced from: /Users/kpmurphy/pmtksupport/glmnet-matlab/glmnetMex.mexmaci64
  Reason: image not found.

Error in ==> glmnet at 254
    [a0,ca,ia,nin,rsq,alm,nlp,jerr] = glmnetMex(parm,x,y,jd,vp,ne,nx,nlam,flmin,ulam,thresh,isd,weights,ka);

254     [a0,ca,ia,nin,rsq,alm,nlp,jerr] = 
glmnetMex(parm,x,y,jd,vp,ne,nx,nlam,flmin,ulam,thresh,isd,weights,ka);

Please use labels and text to provide additional information.

it cannot find this fortran library:

/usr/local/lib/libgfortran.2.dylib

Original issue reported on code.google.com by murphyk2 on 28 Feb 2011 at 7:51

GoogleCodeExporter commented 8 years ago
I have the same issue, has anyone found a solution? 

Original comment by olivier....@gmail.com on 14 Jun 2011 at 12:21

GoogleCodeExporter commented 8 years ago
Apparently this library /usr/local/lib/libgfortran.2.dylib is misplaced. 
Creating a symbolic link to the file in /usr/local/lib/ solved this issue for 
me. 
In my case, this library was available through an R install: 
/Library/Frameworks/R.framework/Versions/Current/Resources/lib/libgfortran.2.dyl
ib

Original comment by olivier....@gmail.com on 14 Jun 2011 at 12:34

GoogleCodeExporter commented 8 years ago
I am running 64 bit Mac OSX 10.7.5 and Matlab 2012a. initPmtk3 is crashing on 
me at the glmnetMex line 254. No message is provided, Matlab just dissappears. 
I added a symbolic link as instructed to the same R.framework library described 
above so I now have an entry for libgfortran.2.dylib in /usr/local/lib. However 
I still get the same crash. Any ideas. 

Original comment by e...@synful.com on 28 Nov 2012 at 12:00

GoogleCodeExporter commented 8 years ago
It took me installing a symlink to 
/Library/Frameworks/R.framework/Versions/3.0/Resources/lib/libgfortran.2.dylib 
in the matlab directory that contains the libgfortran.3.dylib, i.e., 
/Applications/MATLAB_R2012b.app/sys/os/maci64/ . Finally glmnet runs. Haven't 
done extensive testing of features though. 

Original comment by nsa...@gmail.com on 18 May 2013 at 9:07

GoogleCodeExporter commented 8 years ago
Getting glmnet to run on mac os X 64 bit

Original comment by murphyk2 on 20 May 2013 at 3:35

GoogleCodeExporter commented 8 years ago
#4 solved the problem! Thanks!

Original comment by oma...@gmail.com on 17 Sep 2013 at 5:35

GoogleCodeExporter commented 8 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/17

Original comment by irosen on 4 Jan 2014 at 2:33