如何在Ubuntu 12.04 LTS上安装Coderunner?

3
我正在尝试按照以下指南在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重新安装Ruby1.9.1和Rubygems,然后再尝试安装Codrunner。记得先运行sudo apt-get update更新软件源。 - James King
1个回答

1

当我尝试安装Coderunner时,我在Ubuntu 13.10上遇到了同样的错误。我运行了以下命令:

sudo apt-get install libgsl0-dev

安装了GSL之后,我就能够安装Coderunner了。
gem install coderunner

希望这对一些人有所帮助。但是在安装后,我意识到我把这个工具和KrillApps的Mac工具弄混了。那个工具似乎不支持Linux。我发现这是一个适合Mac的Codrunner的替代方案:http://ideone.com/ - RossG

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接