【问题标题】:How to install the GNU Scientific Library (GSL) on Cloud9 IDE?如何在 Cloud9 IDE 上安装 GNU Scientific Library (GSL)?
【发布时间】:2016-05-29 14:28:09
【问题描述】:

我正在尝试在 Cloud9 IDE 中安装 gem 'gsl'。但它要求已安装 GSL 库 (https://www.gnu.org/software/gsl/)。

错误:

missing required library to compile this module

文档:

请注意,GSL 库必须在 Ruby/GSL 之前安装 可以安装:

来源:https://github.com/SciRuby/rb-gsl

我一直在搜索并看到一些推荐的在 Windows 和 Heroku(通过 buildpacks)上安装的解决方案,但没有像 Cloud9 这样的 IDE 的解决方案。

说实话,我完全迷失了,想知道是否有其他人有这样做的经验?

【问题讨论】:

    标签: ruby-on-rails cloud9-ide gsl


    【解决方案1】:

    根据你链接的rb-gsldocumentation,需要安装:

    libgsl0-dev

    在 Cloud9 工作区上,因为 Cloud9 工作区运行的是 Ubuntu 14.04。

    为了做到这一点,你可以这样做:

    sudo apt-get install libgsl0-dev

    然后尝试安装 gem。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      • 1970-01-01
      • 2013-09-26
      • 2016-07-09
      • 2017-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多