刘月林 | 使用 bundle config 修改 Ruby 镜

2018-08-27  本文已影响0人  刘月林Yuelin_MELB
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master ⮀
 bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/
^C%                                                                              ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀  bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Could not fetch specs from https://ruby.taobao.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀  bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Could not fetch specs from https://ruby.taobao.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ remote -v
zsh: command not found: remote
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ npm remote -v
5.6.0
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀$gem sourcess

zsh: command not found: sources
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sourc s

zsh: command not found: sources
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ggem sources
zsh: command not found: ggem
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources
*** CURRENT SOURCES ***

https://gems.ruby-china.org/
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources --remove https://gems.ruby-china.org/
https://gems.ruby-china.org/ removed from sources
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources
*** CURRENT SOURCES ***

 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Could not fetch specs from https://ruby.taobao.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Could not fetch specs from https://ruby.taobao.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources --remove https://ruby.taobao.org/
source https://ruby.taobao.org/ not present in cache
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ ChenYuans-Air:~ cy$
zsh: command not found: ChenYuans-Air:~
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources
*** CURRENT SOURCES ***

 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://ruby.taobao.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://ruby.taobao.org/
Could not fetch specs from https://ruby.taobao.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ sudo gem sources -r https://ruby.taobao.org/
Password:
source https://ruby.taobao.org/ not present in cache
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem source -a https://gems.ruby-china.org/
Error fetching https://gems.ruby-china.org/:
    bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem source -a https://gems.ruby-china.org/
Error fetching https://gems.ruby-china.org/:
    bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem source -a https://gems.ruby-china.org/
Error fetching https://gems.ruby-china.org/:
    bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem source -c
*** Removed specs cache ***
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem sources
*** CURRENT SOURCES ***

 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ gem source -a https://gems.ruby-china.org/
Error fetching https://gems.ruby-china.org/:
    bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle config mirror.https://rubygems.org https://gems.ruby-china.org
You are replacing the current global value of mirror.https://rubygems.org, which is currently "https://ruby.taobao.org"
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching source index from https://gems.ruby-china.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://gems.ruby-china.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://gems.ruby-china.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://gems.ruby-china.org/
Could not fetch specs from https://gems.ruby-china.org/
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle config --delete 'mirror.https://rubygems.org/'
 liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..^C%                            ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
  In snapshot (Gemfile.lock):
    activemodel (= 5.2.1)

  In Gemfile:
    rails (~> 5.2.1) was resolved to 5.2.1, which depends on
      activemodel (= 5.2.1)

    simple_form (~> 3.5) was resolved to 3.5.1, which depends on
      activemodel (< 5.2, > 4)

    web-console (>= 3.3.0) was resolved to 3.6.2, which depends on
      activemodel (>= 5.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
 ✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/twittter ⮀ ⭠ master± ⮀ bundle install
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.1.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.1
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.4
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.1
Using rack 2.0.5
Using rack-test 1.1.0
Using actionpack 5.2.1
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.1
Using globalid 0.4.1
Using activejob 5.2.1
Using mini_mime 1.0.1
Using mail 2.7.0
Using actionmailer 5.2.1
Using activemodel 5.2.1
Using arel 9.0.0
Using activerecord 5.2.1
Using mimemagic 0.3.2
Using marcel 0.3.2
Using activestorage 5.2.1
Using public_suffix 3.0.3
Using addressable 2.5.2
Using io-like 0.3.0
Using archive-zip 0.11.0
Using bcrypt 3.1.12
Using coderay 1.1.2
Using better_errors 2.4.0
Using bindex 0.5.0
Using rb-fsevent 0.10.3
Using ffi 1.9.25
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.7
Using bulma-rails 0.6.2
Using bundler 1.16.2
Using byebug 10.0.2
Using xpath 3.1.0
Using capybara 3.6.0
Using childprocess 0.9.0
Using chromedriver-helper 1.2.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 0.9.0
Using thor 0.20.0
Using railties 5.2.1
Using coffee-rails 4.2.2
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.4.3
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using formatador 0.2.5
Using gravatar_image_tag 1.2.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using lumberjack 1.0.13
Using nenv 0.3.0
Using shellany 0.0.1
Using notiffany 0.1.1
Using pry 0.11.3
Using guard 2.14.2
Using guard-compat 1.2.1
Using multi_json 1.13.1
Using guard-livereload 2.5.2
Using jbuilder 2.7.0
Using puma 3.12.0
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.1
Using rubyzip 1.2.1
Using tilt 2.0.8
Using sass-rails 5.0.7
Using selenium-webdriver 3.14.0
Using simple_form 4.0.1
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.3.13
Using turbolinks-source 5.2.0
Using turbolinks 5.2.0
Using uglifier 4.1.18
Using web-console 3.6.2
Bundle complete! 24 Gemfile dependencies, 98 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

参考资料

🔗原文: RubyGems 镜像

🔗Bundler: bundle_config: gem-source-mirrors

🔗原文: 无需更改 Gemfile, 让 bundle 使用淘宝源

刘月林
写于浙江宁波
2018/08/27

上一篇下一篇

猜你喜欢

热点阅读