新手问题 [已解决] RVM 安装好了,安装 readline 失败。

gavin6liu · 2013年11月10日 · 最后由 lgn21st 回复于 2013年11月21日 · 4858 次阅读

Mac 环境,参照http://ruby-china.org/wiki/install_ruby_guide这里安装的 rvm pkg install readline 前面都执行过了,rvm 也正常安装,安装 readline 失败,不知道是什么原因

$ rvm pkg install readline

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

Checking requirements for osx.
Installing macports..........................................................................................................................................................................................................
Error running 'requirements_osx_port_install_port',
please read /Users/gavin/.rvm/log/1384061565/port_install.log
Requirements installation failed with status: 1.
Fetching readline-5.2.tar.gz to /Users/gavin/.rvm/archives
Extracting readline to /Users/gavin/.rvm/src/readline-5.2
Applying patch '/Users/gavin/.rvm/patches/readline-5.2/shobj-conf.patch'....
Prepare readline in /Users/gavin/.rvm/src/readline-5.2..
Error running '__rvm_autoreconf -is --force',
please read /Users/gavin/.rvm/log/1384061565/readline_autoreconf.log
Configuring readline in /Users/gavin/.rvm/src/readline-5.2................................................................................................................................................................
Compiling readline in /Users/gavin/.rvm/src/readline-5.2..................................................................................................................................................................................................................................................................................................................................................................................................................................................
Installing readline to /Users/gavin/.rvm/usr..................................................................................

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

    rvm reinstall all --force

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

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

    rvm reinstall all --force

…我想删了 wiki,过时内容很多

#1 楼 @Rei 那现在应该怎么安装?想学 ruby 环境还搞好

#2 楼 @gavin6liu 我简单修订了一下 wiki,去掉了 readline 的部分,添加了 Homebrew 的内容,其实现在 rvm 已经非常智能了,你可以看看,其实整个安装流程已经大幅简化了。

#1 楼 @Rei 过时最害人了……

嗯,以前是要自己手工 apt-get install libreadline-dev 的

#3 楼 @lgn21st 装了 Homebrew 就可以了,thx

$ rvm -v
rvm 1.23.14 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]
$ gem -v
2.0.6
$ rails -v
Rails 4.0.1

应该是对了

#3 楼 @lgn21st 建议在 Wiki 上加入官方的网站链接吧,鼓励大家如果是第一次安装的话,先去看看官方网站以及软件的手册,哪怕是英文的。毕竟官方的东西更新的最快。中文还是有滞后的。

呃,出错信息不是已经解释了吗?请看:rvm help autolibs,不能太依赖 wiki 哦,wiki 做个参考知道该做什么,具体的细节还应该以官方文档为准。

匿名 #9 2013年11月10日
rvm requirements
rvm reinstall ***

#8 楼 @nightire 现在也很纠结这个问题,只关心出错了,而不关心出错内容。往往答案就在眼前👀

#1 楼 @Rei 希望能重新写一下 wiki,与时俱进

#11 楼 @hlt 关键的问题是没人总折腾环境。除非虚拟机搞一份镜像,每次更新都进去跑一下. 现在也只能是谁安装了,谁顺手更新了。

#3 楼 @lgn21st

Homebrew 安装地址更新了,多了个 install,Wiki 有遗漏。

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

#13 楼 @gavin6liu 修改了,谢谢提醒。

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