5

RVM 已安装并正在运行。我正在尝试安装 Ruby 2.0,但是我尝试安装的任何版本都会发生这种情况。这是没有 ruby​​ 的全新安装的 rvm。我正在运行 Debian Squeeze。

运行后

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*

我不确定在此之后该怎么做

4

1 回答 1

10

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

apt-get install build-essential
于 2013-05-10T02:09:13.337 回答