Problems installing gsl gem

后端 未结 10 699
傲寒
傲寒 2020-12-15 05:12

I can succesfully install the gsl library in my home directory, but when I try to install the gsl gem I get a big list of errors that I do not understand. I am wondering if

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 06:00

    lsb_release -a Ubuntu 14.04.1 LTS
    ruby --version ruby 2.1.2p95


    Important: Install gsl development package (https://askubuntu.com/a/490475/121418)
    sudo apt-get install libgsl0-dev

    Add this line in Gemfile
    gem 'rb-gsl'

    Install gem via Terminal
    bundle install


    Verify
    bundle show rb-gsl
    /.rvm/gems/ruby-2.1.2/gems/rb-gsl-1.16.0.4

    gsl-config --version
    1.15


    Use require "gsl" in ruby file if necessary

提交回复
热议问题