Skip to content

Commit f1eb0f8

Browse files
authored
Update macOS instructions in Numo docs (#199)
Merge pull request 199
1 parent 813b9a6 commit f1eb0f8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ Note that LSI will work without these libraries, but as soon as they are install
7070

7171
* Install [LAPACKE](https://www.netlib.org/lapack/lapacke.html)
7272
* Ubuntu: `apt-get install liblapacke-dev`
73-
* macOS: (Help wanted to verify installation steps) https://stackoverflow.com/questions/38114201/installing-lapack-and-blas-libraries-for-c-on-mac-os
73+
* macOS: `brew install lapack`
7474
* Install [OpenBLAS](https://www.openblas.net/)
7575
* Ubuntu: `apt-get install libopenblas-dev`
76-
* macOS: (Help wanted to verify installation steps) https://stackoverflow.com/questions/38114201/installing-lapack-and-blas-libraries-for-c-on-mac-os
77-
* Install the [Numo::NArray](https://ruby-numo.github.io/narray/) and [Numo::Linalg](https://ruby-numo.github.io/linalg/) gems
78-
* `gem install numo-narray numo-linalg`
76+
* macOS: `brew install openblas`
77+
* Install the [Numo::NArray](https://ruby-numo.github.io/narray/) and [Numo::Linalg](https://ruby-numo.github.io/linalg/) gems. If you're using Bundler, add `numo-narray` and `numo-linalg` to your Gemfile. (If using Bundler on macOS, you should set the build config like `bundle config set --global build.numo-linalg --with-openblas-dir=$(brew --prefix openblas) --with-lapack-lib="$(brew --prefix lapack)/lib"`.)
78+
* Ubuntu: `gem install numo-narray numo-linalg`
79+
* macOS: `gem install numo-narray`, `gem install numo-linalg -- --with-openblas-dir=$(brew --prefix openblas) --with-lapack-lib="$(brew --prefix lapack)/lib"
7980

8081
### Install GSL Gem
8182

@@ -85,7 +86,7 @@ The [GNU Scientific Library (GSL)](http://www.gnu.org/software/gsl) is an altern
8586

8687
* Install the [GNU Scientific Library](http://www.gnu.org/software/gsl)
8788
* Ubuntu: `apt-get install libgsl-dev`
88-
* Install the [Ruby/GSL Gem](https://rubygems.org/gems/gsl) (or add it to your Gemfile)
89+
* Install the [Ruby/GSL Gem](https://rubygems.org/gems/gsl). If you're using Bundler, add `gsl` to your Gemfile.
8990
* `gem install gsl`
9091

9192

0 commit comments

Comments
 (0)