新手问题 新手搭建 ruby 开发环境多次失败,求助

sgsheg · 2013年04月06日 · 最后由 mahone3297 回复于 2014年05月01日 · 5128 次阅读

按照 wiki 上的走的,多台机子上安装都是失败,进行到

rvm pkg install readline 开始报错:

Beware, 'rvm pkg ...' is deprecated, read about the new autolibs feature: 'rvm help autolibs'.

Installing requirements for ubuntu, might require sudo password.
Skipping `apt-get update` make sure your system is up to date.
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do it's job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Missing required packages: libgdbm-dev, libncurses5-dev, bison, libffi-dev.
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do it's job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Fetching readline-5.2.tar.gz to /home/hua/.rvm/archives
Extracting readline to /home/hua/.rvm/src/readline-5.2
Applying patch '/home/hua/.rvm/patches/readline-5.2/shobj-conf.patch'....
Prepare readline in /home/hua/.rvm/src/readline-5.2.............................
Error running 'autoreconf -is --force',
please read /home/hua/.rvm/log/readline/autoreconf.log
Configuring readline in /home/hua/.rvm/src/readline-5.2........................................................................................................................................................................
Compiling readline in /home/hua/.rvm/src/readline-5.2..........................................................................................................................................................................
Installing readline to /home/hua/.rvm/usr..................................................................................

Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

Fetching readline-6.2.tar.gz to /home/hua/.rvm/archives
Extracting readline to /home/hua/.rvm/src/readline-6.2
Applying patch '/home/hua/.rvm/patches/readline-6.2/patch-shobj-conf.diff'....
Prepare readline in /home/hua/.rvm/src/readline-6.2...............................
Error running 'autoreconf -is --force',
please read /home/hua/.rvm/log/readline/autoreconf.log
Configuring readline in /home/hua/.rvm/src/readline-6.2..............................................................................................................................................................................
Compiling readline in /home/hua/.rvm/src/readline-6.2...................................................................................................................................................................................
Installing readline to /home/hua/.rvm/usr.......................................................................................

Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

求指导,

参加个培训就解决了

rvm requirements 然后安装提示的所有依赖包, 之后再rvm reinstall all --force试试

rvm现在坑不少,我已经换成用rbenv来管理 ruby 环境了

Missing required packages: libgdbm-dev, libncurses5-dev, bison, libffi-dev.

提示里不是说了

先按照 wiki 里面写的,把依赖都安装好。然后 运行 rvm autolibs enable ,一下子就运行完了,最后再安装 ruby rvm install 1.9.3 或者其他版本

多谢! 多谢!

@nightire 你早说吗,最近也重新安装环境的时候也遇到这样的问题的,先安装好了其他的组件,在到最后根据提示错误解决

#10 楼 @yeyong14 呃……怪我说晚了啊?

@nightire 你这个应该加到 wiki 里面去的。这样方便新手查看的

是时候升级一下本站的 wiki 了

#6 楼 @nightire Wiki 能不能更新一下?

真的应该更新一下 Wiki 了

https://github.com/mahone3297/hades/blob/master/other/ruby.md 贴个我之前装 ruby 的时候参考本站 wiki,然后记录的文档。。。 对比 @nightire 的留言,我也算是添加了 rvm autolibs enable这句,但是没有 rvm requirements 应该是当时我装的时候确实不需要。不知道现在是否需要。。。我的文档,也算是供大家参考吧。。。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册