Comments (6)
如何使用?
请尽可能用比较新的 RubyGems 版本,建议 2.6.x 以上。
$ gem update --system # 这里请翻墙一下
$ gem -v
2.6.3
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.org
确保只有 gems.ruby-china.org
如果你使用 Gemfile 和 Bundle (例如:Rails 项目)
你可以用 Bundler 的 Gem 源代码镜像命令。
$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org
这样你不用改你的 Gemfile 的 source。
source 'https://rubygems.org/'
gem 'rails', '4.2.5'
...
from ruby.taobao.org.
证书一样有问题?
Error fetching https://gems.ruby-china.org:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ce
rtificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)
from ruby.taobao.org.
@cnhappier http://mirrors.aliyun.com/rubygems/
from ruby.taobao.org.
@lzhr 👍 mirrors.aliyun.com 的速度也很快,希望不会一段时间后又不能使用了。
from ruby.taobao.org.
ruby-china那个镜像不稳定,大部分时候也不快
from ruby.taobao.org.
证书一样有问题?
$ gem source -a https://gems.ruby-china.org --remove https://rubygems.org/ -V
Getting SRV record failed: DNS result has no information for _rubygems._tcp.gems.ruby-china.org
Error fetching https://gems.ruby-china.org:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)
from ruby.taobao.org.
Related Issues (20)
- 执行gem sources --add https://ruby.taobao.org 报错 HOT 2
- 安装失败 HOT 2
- gem sources -a https://ruby.taobao.org/失败 HOT 3
- 为什么更新了淘宝的源,可是显示的还是ruby的源 HOT 1
- gem sources --add https://ruby.taobao.org --remove https://rubygem.org出错 HOT 1
- https是否过期? HOT 11
- certificate verify failed`
- 不支持ruby-build的镜像
- Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
- gem install cocoa pods失败 HOT 1
- Error fetching HOT 1
- gem之前是大写,改名为小写后同步不过来了 HOT 2
- 感谢wonderful60
- 命令行 运行:bundle install 出错 HOT 1
- 执行命令:gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/ 报错 HOT 4
- 找不到资源:nessus_rest-0.1.4
- 为什么安装cocoapods,版本不正确。 HOT 7
- 好多资源都找不到
- cocoapods 版本较低 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby.taobao.org.