新手问题 安装 readline 为什么提示:rvm reinstall all --force?

topswim · 2012年10月17日 · 最后由 zjlovezj 回复于 2012年11月24日 · 5580 次阅读

安装 readline 为什么提示: Please note that it's required to reinstall all rubies:

rvm reinstall all --force

[ruby@localhost Downloads]$ rvm pkg install readline Fetching readline-5.2.tar.gz to /home/ruby/.rvm/archives % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 23 1989k 23 473k 0 0 9832 0 0:03:27 0:00:49 0:02:38 7278 24 1989k 24 483k 0 0 9641 0 0:03:31 0:00:51 0:02:40 9743 24 1989k 24 484k 0 0 9219 0 0:03:41 0:00:53 0:02:48 4928 25 1989k 25 500k 0 0 9258 0 0:03:40 0:00:55 0:02:45 4294 100 1989k 100 1989k 0 0 10762 0 0:03:09 0:03:09 --:--:-- 8938 Extracting readline-5.2.tar.gz to /home/ruby/.rvm/src Applying patch '/home/ruby/.rvm/patches/readline-5.2/shobj-conf.patch'... Configuring readline in /home/ruby/.rvm/src/readline-5.2. Compiling readline in /home/ruby/.rvm/src/readline-5.2. Installing readline to /home/ruby/.rvm/usr

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

rvm reinstall all --force

Fetching readline-6.2.tar.gz to /home/ruby/.rvm/archives There is no checksum for 'http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz' or 'readline-6.2.tar.gz', it's not possible to validate it. If you wish to continue with unverified download add '--verify-downloads 1' after the command.

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

rvm reinstall all --force

我也遇到了

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

rvm reinstall all --force

Fetching readline-6.2.tar.gz to /Users/gsm/.rvm/archives There is no checksum for 'http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz' or 'readline-6.2.tar.gz', it's not possible to validate it. If you wish to continue with unverified download add '--verify-downloads 1' after the command. 这样的 等待中

#1 楼 @Jsiguo why your readline is readline-6.2,my readline is readline-5.2?

不知道咋回事,按照 ruby-china 的 wiki 文档走到 rvm pkg install readline 就上面的东西,不知道怎么弄

#2 楼 @topswim #3 楼 @Jsiguo 重装了readline 必须要重新安装 所有 ruby , 就按提示输入重装即可.

怎么重装所有的 ruby 之前没装过 ruby,安装命令麻烦贴下

#4 楼 @lyfi2003 我重装了!还是不行啊! 执行:rvm reinstall all --force

[ruby@localhost ~]$ rvm reinstall all --force Removing /home/ruby/.rvm/src/ruby-1.9.2-p320... Removing /home/ruby/.rvm/rubies/ruby-1.9.2-p320... No binary rubies available for: redhat/6.0/i386/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /home/ruby/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)... ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection... ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/ruby/.rvm/src/ruby-1.9.2-p320 ruby-1.9.2-p320 - #extracted to /home/ruby/.rvm/src/ruby-1.9.2-p320 ruby-1.9.2-p320 - #configuring

ruby-1.9.2-p320 - #compiling ruby-1.9.2-p320 - #installing Removing old Rubygems files... Installing rubygems-1.8.24 for ruby-1.9.2-p320 ... Installation of rubygems completed successfully. Saving wrappers to '/home/ruby/.rvm/bin'. ruby-1.9.2-p320 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). ruby-1.9.2-p320 - #importing default gemsets (/home/ruby/.rvm/gemsets/) Install of ruby-1.9.2-p320 - #complete Making gemset ruby-1.9.2-p320 pristine. Making gemset ruby-1.9.2-p320@global pristine.

#7 楼 @topswim 看你的情况很可能用的是 ubuntu 吧, 缺少必要的依赖, 用这个命令处理一下 : rvm notes , 然后根据提示安装, 之后重试一下.

#8 楼 @lyfi2003 没有!我用的是 red hat 6.0! 这个 readline 没有装成功导致我 gem source -a http://ruby.taobao.org 也报错啊!?

#6 楼 @topswim 你的问题解决没,我用的 mac 和你报同样的错误

MacBook-Pro:~ zhanglei$rvm reinstall all --force MacBook-Pro:~ zhanglei$ rvm pkg install readline Fetching readline-5.2.tar.gz to /Users/gsm/.rvm/archives Extracting readline-5.2.tar.gz to /Users/gsm/.rvm/src Applying patch '/Users/gsm/.rvm/patches/readline-5.2/shobj-conf.patch'... Configuring readline in /Users/zhanglei/.rvm/src/readline-5.2. Compiling readline in /Users/zhanglei/.rvm/src/readline-5.2. Installing readline to /Users/zhanglei/.rvm/usr

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

rvm reinstall all --force

Fetching readline-6.2.tar.gz to /Users/gsm/.rvm/archives There is no checksum for 'http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz' or 'readline-6.2.tar.gz', it's not possible to validate it. If you wish to continue with unverified download add '--verify-downloads 1' after the command.

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

rvm reinstall all --force 社区有谁知道提示下,第一次装 rails

mac os10.8.2 xcode4.5 并且 Command Line Toos 也都装了 然后安装 wiki 文档一步步走到 rvm pkg install readline 就报上面的错

社区里面的 wiki 过时了,现在应该装 1.9.3 的,patch 194。 目前 patch 284 我还不敢冒险。

那个信息不是报错,仔细看倒数第三句,它让你修改一下命令(添加参数)。

#12 楼 @zjlovezj rvm pkg install readline --verify-downloads 1 谢谢,恍然大悟!

#12 楼 @zjlovezj patch 什么意思?

每一个 ruby 版本都会打补丁,p194 就是第 194 个补丁

#15 楼 @zjlovezj 你好,我的 ROR 在 MAC 安装成功,但是在 Linux 6.0 下安装没有报错,但是在获取 gem 包的时候报错: [ruby@localhost ~]$ rvm list

rvm rubies

ruby-1.8.7-p371 [ i686 ] =* ruby-1.9.3-p286 [ i686 ]

=> - current

=* - current && default

* - default

[ruby@localhost ~]$ gem source -a http://ruby.taobao.org /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- zlib (LoadError) from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:540:in gunzip' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:239:infetch_path' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:269:in load_specs' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/commands/sources_command.rb:72:inexecute' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in invoke' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:inprocess_args' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in run' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:inrun' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/bin/gem:25:in `

' [ruby@localhost ~]$

#12 楼 @zjlovezj rvm pkg install readline --verify-downloads 1 仍然错误。

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