加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用RVM安装Ruby版本时配置问题

发布时间:2020-12-17 03:39:54 所属栏目:百科 来源:网络整理
导读:RVM已安装并正在运行.我正在尝试安装 Ruby 2.0,但这种情况发生在我尝试安装的任何版本中.这是一个没有ruby的rvm的全新安装.我正在运行Debian Squeeze. 跑完之后 rvm install 2.0 我收到此错误: Installing Ruby from source to: /home/user/.rvm/rubies/rub
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*

在此之后我不知道该怎么做

解决方法

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

apt-get install build-essential

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读