报错是 no such name,感觉很疑惑,附相信错误信息:
➜ metasploit-framework git:(master) gem install bundler --debug
Exception `LoadError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Resolv::DNS::Config::NXDomain' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/resolv.rb:547 -
_rubygems._tcp.ruby.taobao.orgException `Resolv::DNS::Config::NXDomain' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/resolv.rb:547 - _rubygems._tcp.ruby.taobao.org.local
Exception `Resolv::ResolvError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/resolv.rb:492 - DNS result has no information for
_rubygems._tcp.ruby.taobao.orgException `Errno::EEXIST' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/fileutils.rb:250 - File exists @ dir_s_mkdir - /Users/chu/.gem/specs/
ruby.taobao.org%443
Exception `SocketError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/net/http.rb:879 - getaddrinfo: Invalid value for ai_flags
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:283 - no such name (
https://ruby.taobao.org/latest_specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:268 - no such name (
https://ruby.taobao.org/latest_specs.4.8.gz)
Exception `Gem::SpecificGemNotFoundException' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/dependency_installer.rb:297 - Could not find a valid gem 'bundler' (>= 0) locally or in a repository
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from
https://ruby.taobao.org/ - no such name (
https://ruby.taobao.org/latest_specs.4.8.gz)
Exception `Errno::EEXIST' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/fileutils.rb:250 - File exists @ dir_s_mkdir - /Users/chu/.gem/specs/
ruby.taobao.org%443
Exception `SocketError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/net/http.rb:879 - getaddrinfo: Invalid value for ai_flags
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:283 - no such name (
https://ruby.taobao.org/prerelease_specs.4.8.gz)
Exception `Errno::EEXIST' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/fileutils.rb:250 - File exists @ dir_s_mkdir - /Users/chu/.gem/specs/
ruby.taobao.org%443
Exception `SocketError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/net/http.rb:879 - getaddrinfo: Invalid value for ai_flags
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:283 - no such name (
https://ruby.taobao.org/specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/chu/.rbenv/versions/2.1.6/lib/ruby/2.1.0/rubygems/spec_fetcher.rb:268 - no such name (
https://ruby.taobao.org/specs.4.8.gz)