cocoapods使用时提示Error fetching http://ruby.taobao.org/: bad response Not Found 404
2016-04-12 09:22
609 查看
一.问题描述
cocoapods使用时提示Error fetching http://ruby.taobao.org/: bad response Not Found 404$ sudo gem install cocoapods Password: ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
二、问题解决
原因可能是因为taobao开启https之后将http废弃了,所以使用http连接不上。如下:$ gem sources -a http://ruby.taobao.org/ Error fetching http://ruby.taobao.org/: bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
所以首先移除掉原有的源,然后使用https://ruby.taobao.org
$ gem sources --remove http://ruby.taobao.org/ http://ruby.taobao.org/ removed from sources $ gem sources -a https://ruby.taobao.org/ https://ruby.taobao.org/ added to sources $ gem sources -l *** CURRENT SOURCES *** https://ruby.taobao.org/ $ sudo gem install cocoapods Fetching: nap-1.1.0.gem (100%) Successfully installed nap-1.1.0 Fetching: molinillo-0.4.4.gem (100%) Successfully installed molinillo-0.4.4 ……
相关文章推荐
- 使用HttpHanlder处理404:File not found的问题
- asp+javascript实现404页的处理转换
- 利用404错误页面实现UrlRewrite的实现代码
- flex 开发项目报错之404错误解决方案
- linux .htaccess 设置 404 等错误页面
- PHP header()函数使用详细(301、404等错误设置)
- win2003 iis 404 设置方法与小技巧
- 定制 404 页面的一些心得
- 解决js图片加载时出现404的问题
- Asp.Net实现404页面与301重定向的方法
- IIS自定义404错误页避免暴露.NET网站路径信息
- IIS6上配置404页面的图文教程(url+文件)
- IIS 8.5下设置404错误页图文教程
- win8下IIS 8.5下设置404错误页
- IIS 8.5下设置自定义404错误页
- ThinkPHP 404页面的设置方法
- asp.net网站的404错误页面的正确设置方法第1/2页
- 2016最新CocoaPods安装和错误解决方案
- 2016 cocoapods的安装和使用方法以及版本升级遇到的问题
- IIS下自定义404页面返回200状态码的严重性及解决方法