alibaba / ruby.taobao.org Goto Github PK
View Code? Open in Web Editor NEWRubyGems Mirror Web page
Home Page: http://ruby.taobao.org
License: MIT License
RubyGems Mirror Web page
Home Page: http://ruby.taobao.org
License: MIT License
C:\Users\Administrator>gem sources -a https://ruby.taobao.org/
Error fetching https://ruby.taobao.org/:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
我把ruby彻底卸载重装了一遍 已经没问题了
最笨的方法:
1、正常卸载rubyinstaller;
2、清理注册表垃圾;
3、用win7系统的搜索功能搜索关键字gem,把和ruby相关的文件全删除;
先前重装的时候应该是卸载的不干净,导致多次重装都无效
还可以尝试:创建环境变量SSL_CERT_FILE,设置value指向cacert.pem
~ # gem sources -a https://ruby.taobao.org
ERROR: While executing gem ... (Errno::ENETRESET)
Network dropped connection on reset - recvfrom(2)
~ # gem sources -a https://ruby.taobao.org
ERROR: While executing gem ... (Errno::ENETRESET)
Network dropped connection on reset - recvfrom(2)
就是这种错误..是我倒霉遇到吗??还是一直这样?
请更新 Ruby 2.3.0, 谢谢~
➜ / gem sources -l
*** CURRENT SOURCES ***
http://ruby.taobao.org/
➜ / gem install rails
ERROR: Could not find a valid gem 'rails' (>= 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)
➜ /
用 https 替换 http
执行
gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
提示:
Error fetching https://ruby.taobao.org/:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ce
rtificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/spe
cs.4.8.gz)
我用的是win系统,这个命令有影响吗?正确的该怎么做
我利用rubygems-mirror搭建了个rubygems源,作为公司内网使用。
但是如何像ruby.taobao.org这么设置?
因为默认要把本地的gem source指向源的目录而不是一个网页?
WARNING: Unable to pull data from 'http://ruby.taobao.org/': bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz)
WARNING: Unable to pull data from 'http://ruby.taobao.org/': bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
$ gem source -a https://ruby.taobao.org/
Error fetching https://ruby.taobao.org/:
bad response Bad Request 400 (https://rubygems-china.oss.aliyuncs.com/specs.4.8.gz)
在浏览器访问 https://rubygems-china.oss.aliyuncs.com/specs.4.8.gz 页面提示
<Error>
<Code>InvalidBucketName</Code>
<Message>The specified bucket is not valid.</Message>
<RequestId>5629AF414A9189B9092AC76B</RequestId>
<HostId>rubygems-china.oss.aliyuncs.com</HostId>
<BucketName>specs.4.8.gz</BucketName>
</Error>
现使用淘宝gem源进行安装需要ruby的gems,运行指令为:sudo -u git -H bundle install --deployment --without development test postgres aws。但是在安装rugged总是报错,望能解答。错误如下:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby -r ./siteconf20150919-24990-znwrcm.rb extconf.rb
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/rugged-0.21.2 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/rugged-0.21.2/gem_make.out
An error occurred while installing rugged (0.21.2), and Bundler cannot continue.
Make sure that gem install rugged -v '0.21.2'
succeeds before bundling.
zhangjingdeMacBook-Pro:~ zhangjing$ gem install calabash-cucumber
ERROR: Error installing calabash-cucumber:
invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /Users/zhangjing/.calabash/cache/calabash-cucumber-0.16.4.gem
only iOS has problem, calabash-android is fine
Please help!
roylez@zoidburg> wget https://ruby.taobao.org/latest_specs.4.8.gz /tmp
--2015-03-08 12:59:08-- https://ruby.taobao.org/latest_specs.4.8.gz
Resolving ruby.taobao.org... 223.6.253.37
Connecting to ruby.taobao.org|223.6.253.37|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://rubygems-china.oss.aliyuncs.com/latest_specs.4.8.gz [following]
--2015-03-08 12:59:14-- https://rubygems-china.oss.aliyuncs.com/latest_specs.4.8.gz
Resolving rubygems-china.oss.aliyuncs.com... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address 'rubygems-china.oss.aliyuncs.com'
我rubygems版本 2.2.3
Could not verify the SSL certificate for
https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/…….
There is a chance you are experiencing a man-in-the-middle attack, but most likely your
system doesn't have the CA certificates needed for verification. For information about
OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your
Gemfile sources and change 'https' to 'http’.
找不到savon这个包
$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
这两行要换下位置
$ gem sources -a https://ruby.taobao.org/
$ gem sources --remove https://rubygems.org/
因为,你清空后,他会自动补一个初始的,所以最扣还是会有两个
要先加一个淘宝的source,再把原来的删掉。
On https://ruby.taobao.org/index_en.html the link to Aliyun OSS has an incorrect URL.
Is: http://oss.aliyuncom/
Should be: http://oss.aliyun.com/
Since this is the English site, you may want to link to the English description of Aliyun OSS.
新年快乐🐵🎉。
gem source
:
*** CURRENT SOURCES ***
https://ruby.taobao.org/
gem install 'email_reply_trimmer' -v 0.0.6
:
ERROR: Could not find a valid gem 'email_reply_trimmer' (= 0.0.6) in any repository
Feb 8 更新的包,近一周了,还没有同步到淘宝源。
https://rubygems.org/gems/email_reply_trimmer/versions/0.0.6
do
gem sources -a https://ruby.taobao.org/
then
Error fetching https://ruby.taobao.org/: too many connection resets(https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
rvm install 2.1.8 或者 rvm install 2.1报上述错误。
https://ruby.taobao.org/mirrors/ruby/2.1/ 下没有ruby-2.1.8.tar.bz2文件,在https://ruby.taobao.org/mirrors/ruby/下有,请检查一下是否没有做文件链接。
目前还没有看到2.2.3的tarball
➜ ~ sudo gem sources -a https://ruby.taobao.org/
Error fetching https://ruby.taobao.org/:
no such name (https://ruby.taobao.org/specs.4.8.gz)
➜ ~
linner没有0.12.0的版本
https://rails-assets.org/
已经是非常常用的 assets 源了,计划支持
os: ubuntu 14.10
sudo gem install sass
It print:
Successfully installed sass-3.4.16
Parsing documentation for sass-3.4.16
Done installing documentation for sass after 5 seconds
1 gem installed
Then I type:
sass -v
But it didn't work.
bash: /usr/bin/sass: No such file or directory
I check my sources list :
gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org/
http://ruby.taobao.org
Thanks so much for this mirror!
But if I want to install ruby using rbenv
, how can I use this mirror?
Could not find bcrypt-3.1.11 in any of the sources
Could not find sprockets-rails-3.0.4 in any of the sources
您们所作的工作是善举,从心底里感谢您们。但我的问题是,所有镜像的packages是否有和源文件一样的hash(md5 or sha#)值,以此保证没有被”第三方“恶意修改过。谢谢!
报的错误是:Could not fetch specs from http://ruby.taobao.org/
按照网上所说:http://ruby.taobao.org/
已将source替换:
gem sources -l
*** CURRENT SOURCES ***
http://ruby.taobao.org/
但仍然是有error提示:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from http://ruby.taobao.org/ - too many connection resets (http://rubygems-china.oss.aliyuncs.com/latest_specs.4.8.gz)
系统版本: mac os 10.9
因为最近换电脑了,用的TimeMachine copy的。之前的电脑 gem install 没有任何问题。我在新电脑重新建一个新的用户A,在用户A下面也是没有问题。但当前用户却使很奇怪,一直报错,不知道是否有人遇到过?
do
gem sources -a https://ruby.taobao.org/
then
Error fetching https://ruby.taobao.org/: too many connection resets(https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
我们用到了 fastlane,官方源已经有1.66了,可是淘宝源里还没有
根据 https://rubygems.org/gems/email_reply_trimmer 的结果:
0.1.1 - March 7, 2016 (25.0 KB)
这个版本在3月7号初就发布了,但是taobao镜像至今(3月21号)没有:(
请尽快加上。
另:你们的镜像多久同步一次呢?
谢谢
看rubygems.org,是18号更新的。
➜ src git:(docs) ✗ gem install asciidoctor-diagram -V
Getting SRV record failed: DNS result has no information for _rubygems._tcp.ruby.taobao.org
HEAD https://ruby.taobao.org/api/v1/dependencies
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=asciidoctor-diagram
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.ruby.taobao.org
GET https://ruby.taobao.org/quick/Marshal.4.8/asciidoctor-diagram-1.3.1.gemspec.rz
302 Moved Temporarily
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number (https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/asciidoctor-diagram-1.3.1.gemspec.rz)
➜ src git:(docs) ✗ dig _rubygems._tcp.ruby.taobao.org srv
; <<>> DiG 9.8.3-P1 <<>> _rubygems._tcp.ruby.taobao.org srv
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 46824
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;_rubygems._tcp.ruby.taobao.org. IN SRV
;; AUTHORITY SECTION:
taobao.org. 60 IN SOA taobao.org. tiexin.taobao.com. 2013123229 1800 600 1814400 60
;; Query time: 53 msec
;; SERVER: 202.106.196.115#53(202.106.196.115)
;; WHEN: Wed Oct 14 20:19:31 2015
;; MSG SIZE rcvd: 101
换电脑了,配置一堆问题。目前执行 gem install cocoapods 报错有人遇到吗??
Unable to download
data from https://ruby.taobao.org/
Unable to download data from https://ruby.taobao.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/latest_specs.4.8.gz)
ubuntu:~/$ gem install arel -v '6.0.1'
ERROR: Could not find a valid gem 'arel' (= 6.0.1) in any repository
ERROR: Possible alternatives: arel
文档中写的是
$ sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
但这样替换完之后仍然是 http 请求,导致 rvm 下载 Ruby 时出错,应改为
$ sed -i 's!http://cache.ruby-lang.org/pub/ruby!https://ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
Attaching to adun_adun_1
adun_1 | Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
adun_1 | installing your bundle as root will break this application for all non-root
adun_1 | users on this machine.
adun_1 | Fetching gem metadata from https://ruby.taobao.org/........
adun_1 | Fetching version metadata from https://ruby.taobao.org/..
adun_1 | Could not find activesupport-4.2.5.2 in any of the sources
说好的 15 分钟同步频率呢?
rugged 没有0.24版本
添加淘宝镜像地址的时候会报这个错,是为什么啊,用括号里的地址也不行,多谢解答一生平安
Error fetching https://ruby.taobao.com:SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
RVM 会优先搜索 Travis CI 上编译好的 Ruby MRI 程序。有考虑镜像这些程序么?直接下载程序比本地编译轻松很多。因为只提供 Ubuntu 和 OS X 上的程序且只有最新的几个版本,看起来总体积也不是很大。
gem install sass时,证书校验失败。
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/quick/Marshal.4.8/sass-3.4.21.gemspec.rz)
bundle install 失败,看上去是
http://ruby.taobao.org/quick/Marshal.4.8/sqlite3-1.3.8-x86-mswin32-60.gemspec.rz
打不开,下面是详细信息,请问一下是什么原因,如何解决。
另:Gemfile中有 gem 'sqlite3'
alvin@ubuntu:~/working/blog$ bundle install -V
Fetching from: http://ruby.taobao.org/api/v1/dependencies
Fetching source index from http://ruby.taobao.org/
Resolving dependencies...Fetching from: http://ruby.taobao.org/quick/Marshal.4.8/sqlite3-1.3.8-x86-mswin32-60.gemspec.rz
Net::HTTPNotFound:
<title>404 Not Found</title>/home/alvin/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/fetcher.rb:229:in fetch' /home/alvin/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/fetcher.rb:92:in
fetch_spec'
/home/alvin/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:46:in `_remote_specification'
ERROR: Could not find a valid gem 'alibaba-kfc' (>= 0), here is why:
Unable to download data from https://ruby.taobao.org/ - bad response Not Found 404 (https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/alibaba-kfc-0.0.3.gemspec.rz)
ERROR: Interrupted
原因我猜测是由于 rubygems-mirror 在同步的时候是先下载的 yaml, latest_specs, Marshal 等文件,所以在这个时刻用户安装会拿到新的版本号,而相关的 .gem, .gemspec.rz 文件还未下载完成。
解决方法是同步
Fetching yaml...304 Not modified with etag 042dac3d18a42b12f474524927807d9f
[Done]
Fetching yaml.Z...304 Not modified with etag b0ba87de8c419a500fc1517ff24940b1
[Done]
Fetching latest_specs.4.8...304 Not modified with etag f03e9b38599cdfb8940aa9f8b391d37f
[Done]
Fetching latest_specs.4.8.gz...store latest_specs.4.8.gz to oss bucket rubygems-china
[Done]
Fetching Marshal.4.8...304 Not modified with etag 53aaefc8024abe07cad528531060ffc6
[Done]
Fetching Marshal.4.8.Z...304 Not modified with etag 7f849da00751cd28ba45ab69a52a2217
[Done]
Fetching prerelease_specs.4.8...store prerelease_specs.4.8 to oss bucket rubygems-china
[Done]
Fetching prerelease_specs.4.8.gz...store prerelease_specs.4.8.gz to oss bucket rubygems-china
[Done]
Fetching specs.4.8...store specs.4.8 to oss bucket rubygems-china
[Done]
Fetching specs.4.8.gz...store specs.4.8.gz to oss bucket rubygems-china
[Done]
这些文件的时候,先放到临时的地方,等 gem, gemspec.gz 文件都同步完成以后,再软连接到正确的位置。
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/quick/Marshal.4.8/openssl-0.2.0.gemspec.rz)
目的: 大家知道有多少人在用这个;
地址:
http://rubygems-china.oss-cn-hangzhou.aliyuncs.com/logs/rubygems-china2015-10-15-01-00-00-0001
http://rubygems-china.oss-cn-hangzhou.aliyuncs.com/logs/rubygems-china2015-10-15-02-00-00-0001
例如:
$ http://rubygems-china.oss-cn-hangzhou.aliyuncs.com/logs/rubygems-china2015-10-15-01-00-00-0001 | wc -l
1528
目前服务器的 ruby 不是最新的稳定版
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.