RVM已安装并正在运行。我正在尝试安装Ruby 2.0,但这种情况发生在我尝试安装的任何版本中。这是一个没有红宝石的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*
我不确定在这一点之后该怎么做
答案 0 :(得分:8)
通常对于某些宝石,您可能还需要
apt-get install build-essential