Rbenv ruby​​ 2.2.2 安装失败 Ubuntu 14.04 [英] Rbenv ruby 2.2.2 install fail Ubuntu 14.04

查看:61
本文介绍了Rbenv ruby​​ 2.2.2 安装失败 Ubuntu 14.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 ssh 在服务器 Ubuntu 14.04 上安装带有 rbenv 的 ruby​​ 2.2.2.错误:

I'm trying install ruby 2.2.2 with rbenv on server Ubuntu 14.04 with ssh. Error:

Installing ruby-2.2.2...

BUILD FAILED (Ubuntu 14.04 using ruby-build 20150928-2-g717a54c)

Inspect or clean up the working tree at /tmp/ruby-build.20151021225325.5445
Results logged to /tmp/ruby-build.20151021225325.5445.log

Last 10 log lines:
 97% [943/967]  sparc.c
 97% [944/967]  sprintf.c
 97% [945/967]  st.c
 97% [946/967]  strftime.c
 97% [947/967]  string.c
 98% [948/967]  struct.c
 98% [949/967]  symbol.c
 98% [950/967]  thread.c
Killed
make: *** [rdoc] Error 137

如何安装 ruby​​ 2.2.2 和/或 2.2.3?

What can I do for installing ruby 2.2.2 and/or 2.2.3?

我用这个

sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

但它不起作用

推荐答案

原因是 rdoc 在某些情况下会失败.最简单的解决方案 - 从安装中排除它:

The reason is rdoc that fails for some occasion. The most simple solution - exclude it from installation:

RUBY_CONFIGURE_OPTS="--disable-install-doc" rbenv install 2.2.3

此外,您可以通过一个简单的命令为 ruby​​/Rails 应用程序引导您的 Ubuntu 服务器.在此处查找详细信息:

Also, you can bootstrap your Ubuntu server for ruby/Rails applications in just one simple command. Look for details here:

https://github.com/sandrew/from-scratch

这篇关于Rbenv ruby​​ 2.2.2 安装失败 Ubuntu 14.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆