在Ubuntu服务器13.04上使用rbenv安装ruby

时间:2013-11-01 17:03:48

标签: ruby-on-rails ruby ubuntu rbenv

Edit1:来自amit karsale的答案中的链接是我最初的教程,由于下面的错误而无法帮助我

我正在尝试使用rbenv来安装ruby,所以我可以在我的服务器上设置rails。我一直在撞墙,我相信这很简单

当我运行sudo rbenv安装它从github克隆并运行一分钟然后我得到

Installing ruby-2.0.0-dev...

BUILD FAILED

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

Last 10 log lines:
        DLDFLAGS = -fstack-protector -pie
        SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
generating miniprelude.c
executable host ruby is required. use --with-baseruby option.
make: *** [miniprelude.c] Error 1

1 个答案:

答案 0 :(得分:2)

this link会让你解决,它也帮助了我