i have an error when i install gsl (with netbeans)

自作多情 提交于 2019-12-06 13:42:06

Getting some clues from https://github.com/romanbsd/rb-gsl/issues/2 I did the following on Ubuntu:

Uninstalled my existing gsl:

sudo apt-get remove gsl-bin libgsl0-dev libgsl0ldbl

Built a new gsl

wget ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz
tar xf gsl-1.14.tar.gz
cd gsl-1.14
./configure
make
sudo make install

Installed the gem

gem install gsl

This worked for me.

The above answer works as you can simply use version ~1.14 of both the GSL and ruby bindings (rb-gsl).

However, if you have installed GSL via homebrew (brew install gsl) or prefer version 1.15 you can alternatively specify the following repo in your Gemfile for the ruby bindings:

https://github.com/whistlerbrk/rb-gsl/

which is based off of:

https://github.com/30robots/rb-gsl/

This has the patch for gsl_matrix and the first repo also has a patch for newer versions of rubygems.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!