我正在尝试使用ssh在服务器Ubuntu 14.04上使用rbenv安装ruby 2.2.2。错误:
getOrCreate
如何安装ruby 2.2.2和/或2.2.3?
我用这个
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
但它不起作用
答案 0 :(得分:4)
原因是 rdoc 在某些情况下失败了。最简单的解决方案 - 将其从安装中排除:
RUBY_CONFIGURE_OPTS="--disable-install-doc" rbenv install 2.2.3
此外,您只需一个简单的命令即可为Ubuntu服务器引导ruby / Rails应用程序。在这里查找详细信息: