安装ruby on rails错误:Unable to download data from https://rubygems.org/的解决方法
2015-02-16 16:55
896 查看
本文为大家讲解的是在用gem install rails安装ruby on rails时一直报这个错误的解决方法,感兴趣的同学参考下。
完整的错误信息如下:
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) for "s3.amazonaws.com" port 443 (https://api.rubygems.org/latest_specs.4.8.gz)
解决方案:
貌似意思是将https替换成http,再试了一下,果然可以了,但是安装完后别忘了把它设回来:
完整的错误信息如下:
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) for "s3.amazonaws.com" port 443 (https://api.rubygems.org/latest_specs.4.8.gz)
解决方案:
sudo gem sources -r https://rubygems.org sudo gem sources -a http://rubygems.org
貌似意思是将https替换成http,再试了一下,果然可以了,但是安装完后别忘了把它设回来:
sudo gem sources -r http://rubygems.org sudo gem sources -a https://rubygems.org[/code]
相关文章推荐
- 安装ruby on rails一直报Unable to download data from https://rubygems.org/的解决方案
- ios安装ruby on rails一直报Unable to download data from https://rubygems.org/的解决方案
- gem install Unable to download data from https://rubygems.org/
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- 第一次安装android studio时候弹出unable to access android sdk add-on list解决方法
- 安装Visual Studio 6.0时出现一个“Setup Was Unable to Create a DCOM User Account”错误的解决方法
- Android SDK安装Failed to fetch URL https://dl-ssl.google.com/错误解决方法
- [导入]Unable to get the project ile from the web server错误的解决方法
- YYII框架中表单提交出现Bad Request (#400)---Unable to verify your data submission的错误解决方法
- git 错误: Unable to find remote helper for 'https'解决方法
- Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient错误解决方法
- Ruby on Rails初上手指南中遇到的错误及解决方法
- Flash Builder 4 安装报错 Unable to get root from inChildPath 解决方法
- 在win7 64上用npm安装phantomjs时出现Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE错误的解决方法
- Ubuntu下 安装 Android SDK方法(包含Failed to fetch URL https://dl-ssl.google.com/错误的解决方法)
- 安装android studio时候弹出unable to access android sdk add-on list解决方法
- Unable to get the project from the web server. 错误的解决方法
- python安装PIL模块时Unable to find vcvarsall.bat错误的解决方法
- CLR has been unable to transition from COM context … for 60 seconds’ error. 此错误的解决方法