Closed dcunited001 closed 12 years ago
Would you be able to try a more recent gcc version? I suspect that to be the problem, but will try it on my MacBook Air later.
I can, is there a particular version I should use?
Oh! I think I know the problem. See this message?
nmatrix.h:32:19: error: cblas.h: No such file or directory
That means you don't have ATLAS or LAPACK in the correct location (or installed at all). I recommend starting by following the instructions for installing Apple Developer Tools:
http://www.scipy.org/Installing_SciPy/Mac_OS_X#head-b0f44034a8b5aa2c0f85e34428d3edf4c9016050
In general, SciPy should have the same dependencies as NMatrix. So you might also try the compiler export stuff if just installing Developer Tools doesn't work.
ok cool. yeh, that was the error i was facing. i haven't written much C, so i was a little lost. thanks for the help! I'm taking the Machine Learning class on Coursera. We're using octave for all the programming, so I wanted to try some things out in Ruby.
I had tried installing ATLAS/LAPACK myself, even though I thought it was already on my system. I was running into some issues with gfortran when i was trying to install it myself, but I was . I have xcode 4.3.2 installed and i thought I had the command line tools, but i just updated them.
Once I updated to the most recent XCode Command Line Tools, I also needed to manually symlink the header files into my path with these commands:
for cblas.h: ln -s /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/cblas.h /usr/include/cblas.h
for clapack.h: ln -s /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/clapack.h /usr/include/clapack.h
I can't seem to get NMatrix to compile. I've got ATLAS/LAPACK and Green Shoes installed. I've been able to get SciRuby installed. But for some reason, I can't get NMatrix to compile.
I'm using g++ 4.2 on Mac OSX 10.7.
I've also tried following this post: http://blog.kc2vjw.com/tag/nmatrix/