【问题标题】:How to install Coderunner on Ubuntu 12.04 LTS?如何在 Ubuntu 12.04 LTS 上安装 Coderunner?
【发布时间】:2014-01-14 15:26:46
【问题描述】:

我正在尝试使用以下指南在 Ubuntu 12.04 LTS 上安装 Coderunner。系统运行Ruby 2.1.0(也试过1.9.3没有成功):

http://sourceforge.net/apps/mediawiki/coderunner/index.php?title=Installing_CodeRunner#Step_1:_Configuring_your_system

不幸的是,当我运行 $ gem install coderunner 时,我收到以下错误消息:

    ➜  ~  gem install coderunner 
Building native extensions.  This could take a while...
ERROR:  Error installing coderunner:
    ERROR: Failed to build gem native extension.

    /home/test/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
checking gsl version... *** 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=/home/test/.rvm/rubies/ruby-2.1.0/bin/ruby
extconf.rb:242:in `rescue in <main>': Check GSL>=0.9.4 is installed, and the command "gsl-config" is in search path. (RuntimeError)
    from extconf.rb:143:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /home/test/.rvm/gems/ruby-2.1.0/gems/gsl-1.15.3 for inspection.
Results logged to /home/test/.rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/gsl-1.15.3/gem_make.out

你能告诉我如何解决这个问题吗?

【问题讨论】:

  • 我会尝试使用 apt-get 重新安装 ruby​​1.9.1 和 ruby​​gems,然后再次尝试安装 codrunner。先运行 sudo apt-get update。

标签: ubuntu rubygems coderunner


【解决方案1】:

尝试安装 Coderunner 时,我在 Ubuntu 13.10 上遇到了同样的错误。我跑了这个:

sudo apt-get install libgsl0-dev

安装 GSL 后,我可以安装 Coderunner:

gem install coderunner

【讨论】:

  • 我希望这对某些人有所帮助。但我在安装后意识到我将此工具与 KrillApps 的 Mac 工具混淆了。该工具似乎不支持 Linux。我发现这是 Codrunner for Mac ideone.com 的合适替代品
猜你喜欢
  • 2013-11-09
  • 1970-01-01
  • 1970-01-01
  • 2013-07-23
  • 1970-01-01
  • 2015-06-01
  • 1970-01-01
  • 1970-01-01
  • 2014-03-08
相关资源
最近更新 更多