2013-04-12 92 views
4

RVM已安装并正在运行。我正在尝试安装Ruby 2.0,但这种情况发生在我尝试安装的任何版本上。这是一个没有红宝石的rvm的全新安装。我正在运行Debian Squeeze。使用RVM安装Ruby版本时配置问题

运行

rvm install 2.0 

后,我得到这个错误:

Installing Ruby from source to: /home/user/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)... 
    ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection... 
    ruby-2.0.0-p0 - #extracted to /home/user/.rvm/src/ruby-2.0.0-p0 (already extracted) 
    ruby-2.0.0-p0 - #configuring................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 
    Error running './configure --prefix=/home/user/.rvm/rubies/ruby-2.0.0-p0 --disable-install-doc --enable-shared', 
    please read /home/user/.rvm/log/ruby-2.0.0-p0/configure.log 
    There has been an error while running configure. Halting the installation. 

我看到这个错误,当我读到/home/user/.rvm/log/ruby-2.0.0-p0/ configure.log

checking if make is GNU make... ./configure: line 18790: make: command 
not found no checking for safe null command for make... configure: 
error: no candidate for safe null command 

我然后运行:

rvm install 2.0.0 --autolibs=4 --debug 

然后我得到这个错误

ruby-2.0.0-p0 - #configuring... Error running './configure 
--prefix=/home/user/.rvm/rubies/ruby-2.0.0-p0 --disable-install-doc --enable-shared', please read /home/user/.rvm/log/ruby-2.0.0-p0/configure.log There has been an error while running configure. Halting the installation. 
__rvm_rm_rf already gone: /home/user/.rvm/tmp/26623* 

我不知道这一点后做什么

+5

你有没有'做'安装? –

+0

它看起来像一个错误,为RVM打开一张票=> https://github.com/wayneeseguin/rvm/issues – mpapis

+1

我安装了'make'并用ruby重新安装了rvm,它可以工作。谢谢,我感谢你的帮助。 – spry

回答

6

通常对于某些宝石,你可能还需要

apt-get install build-essential