linalg icon indicating copy to clipboard operation
linalg copied to clipboard

Cannot Install Linalg on OSX Mountain Lion

Open josephmisiti opened this issue 10 years ago • 2 comments

I am seeing the following error

(socialq)JOSEPH-MISITI:lapack-3.2 josephmisiti$ gem install linalg
Building native extensions.  This could take a while...
ERROR:  Error installing linalg:
    ERROR: Failed to build gem native extension.

    /Users/josephmisiti/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for f2c.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/josephmisiti/.rvm/rubies/ruby-2.1.1/bin/ruby
A full LAPACK installation was not found.

extconf failed, exit code 1

Gem files will remain installed in /Users/josephmisiti/.rvm/gems/ruby-2.1.1/gems/linalg-1.0.2 for inspection.
Results logged to /Users/josephmisiti/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/linalg-1.0.2/gem_make.out

But i have both BLAS and LAPACK installed from source

(socialq)JOSEPH-MISITI:lapack-3.2 josephmisiti$ ls -alt /usr/local/lib/ | head -n 10
total 40184
drwxr-xr-x  169 josephmisiti  admin      5746 Jun 25 12:58 .
-rw-r--r--    1 root          admin  16645096 Jun 25 12:58 liblapack.a
-rw-r--r--    1 root          admin    639584 Jun 25 12:28 libblas.a
drwxrwxr-x   25 root          admin       850 Jun 15 21:55 ..
drwxr-xr-x    7 josephmisiti  admin       238 Jun  6 12:37 node_modules
lrwxr-xr-x    1 josephmisiti  admin        47 May 26 19:05 libgs.9.14.dylib -> ../Cellar/ghostscript/9.14/lib/libgs.9.14.dylib
lrwxr-xr-x    1 josephmisiti  admin        44 May 26 19:05 libgs.9.dylib -> ../Cellar/ghostscript/9.14/lib/libgs.9.dylib
lrwxr-xr-x    1 josephmisiti  admin        42 May 26 19:05 libgs.dylib -> ../Cellar/ghostscript/9.14/lib/libgs.dylib
lrwxr-xr-x    1 josephmisiti  admin        46 May 26 19:03 liblcms2.2.dylib -> ../Cellar/little-cms2/2.5/lib/liblcms2.2.dylib

josephmisiti avatar Jun 25 '14 17:06 josephmisiti

+1

jspooner avatar Jan 09 '15 17:01 jspooner

you need libf2c which is a pain to install on osx.

jcb-entrnce avatar Dec 23 '20 11:12 jcb-entrnce