Git Product home page Git Product logo

ruby.taobao.org's People

Contributors

huacnlee avatar hxx avatar stevendaniels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby.taobao.org's Issues

设置淘宝的gem源时,提示证书校验失败

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

请教搭建ruby gems源细节

我利用rubygems-mirror搭建了个rubygems源,作为公司内网使用。
但是如何像ruby.taobao.org这么设置?

因为默认要把本地的gem source指向源的目录而不是一个网页?

添加源失败

$ 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源,安装时遇到问题

现使用淘宝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.

cannot use this source to install calabash

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!

DNS解析出错?

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

bash: /usr/bin/sass: No such file or directory

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

如何保证所有源的安全性和完整性

您们所作的工作是善举,从心底里感谢您们。但我的问题是,所有镜像的packages是否有和源文件一样的hash(md5 or sha#)值,以此保证没有被”第三方“恶意修改过。谢谢!

error : too many connection resets

按照网上所说: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下面也是没有问题。但当前用户却使很奇怪,一直报错,不知道是否有人遇到过?

DNS 需要配置一台 SRV 记录

➜  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

Unable to download data from https://ruby.taobao.org/

换电脑了,配置一堆问题。目前执行 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)

HTTP 停用了导致 rvm 下载 Ruby 时出错

文档中写的是

$ 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

几个小时前发布的 Rails 4.2.5.2 至今 ruby.taobao.org 还没有

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 分钟同步频率呢?

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)

添加淘宝镜像地址的时候会报这个错,是为什么啊,用括号里的地址也不行,多谢解答一生平安
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)

Travis CI 上的 Ruby 程序包

RVM 会优先搜索 Travis CI 上编译好的 Ruby MRI 程序。有考虑镜像这些程序么?直接下载程序比本地编译轻松很多。因为只提供 Ubuntu 和 OS X 上的程序且只有最新的几个版本,看起来总体积也不是很大。

bundle install 失败

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>

404 Not Found


nginx/1.4.7 Bundler::HTTPError: Net::HTTPNotFound: <title>404 Not Found</title>

404 Not Found


nginx/1.4.7

/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:infetch_spec'
/home/alvin/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/remote_specification.rb:46:in `_remote_specification'

在 Gems 同步过程中会出现 ***.gemspec.rz 不存在的问题

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 文件都同步完成以后,再软连接到正确的位置。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.