繁体   English   中英

感到困惑,尝试使用RVM和ruby gem安装Rails 3.0.1时出错

[英]Confused, getting an error when trying to install Rails 3.0.1 with RVM and ruby gems

尝试使用ruby gems安装rails 3.0.1时出现以下错误

   iHAL-2:~ $ gem install rails --version 3.0.1
    ERROR:  Could not find a valid gem 'rails' (= 3.0.1), here is why:
              Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/specs.4.8.gz)
    ERROR:  Possible alternatives: rails

我的RVM设置应该可以:

iHAL-2:~$ rvm get stable
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz

Upgrading the RVM installation in /Users/iHal9000/.rvm/
    RVM PATH line found in /Users/iHal9000/.profile /Users/iHal9000/.bashrc /Users/iHal9000/.zshrc.
    RVM sourcing line found in /Users/iHal9000/.profile /Users/iHal9000/.bash_profile /Users/iHal9000/.zlogin.
Upgrade of RVM in /Users/iHal9000/.rvm/ is complete.

# iHAL-2,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  * No new notes to display.

RVM reloaded!
iHAL-2:~ $ rvm osx-ssl-certs update all
Updating certificates for /usr/local/etc/openssl/cert.pem: Already are up to date.
iHAL-2:~ $ rvm rubygems latest
Rubygems 2.2.2 already available in installed ruby, skipping installation, use --force to reinstall.

我不了解其中的区别,但这对我有用:

gem安装导轨-v 3.0.1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM