"No such name" when installing a gem, only under Ruby 2.1

Jimmy's Avatar

Jimmy

26 Dec, 2013 01:59 PM

Trying to install the gem librarian-chef on Ruby 2.1 results in an error. It works on 2.0. It seems to fail on different gems each time. It even failed on a Java version of Pry even though this is MRI.

$ rbenv shell 2.1.0 $ gem install librarian-chef ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/pry-0.9.9.3-java.gemspec.rz) $ gem install librarian-chef ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/quick/Marshal.4.8/json-1.5.5.gemspec.rz) $ rbenv shell 2.0.0-p353 $ gem install librarian-chef Fetching: highline-1.6.20.gem (100%)
Successfully installed highline-1.6.20
Fetching: librarian-0.1.1.gem (100%)
Successfully installed librarian-0.1.1
Fetching: mixlib-config-2.1.0.gem (100%)
Successfully installed mixlib-config-2.1.0
Fetching: mixlib-cli-1.4.0.gem (100%)
Successfully installed mixlib-cli-1.4.0
Fetching: mixlib-log-1.6.0.gem (100%)
Successfully installed mixlib-log-1.6.0
Fetching: mixlib-authentication-1.3.0.gem (100%)
Successfully installed mixlib-authentication-1.3.0
Fetching: mixlib-shellout-1.3.0.gem (100%)
Successfully installed mixlib-shellout-1.3.0
Fetching: systemu-2.5.2.gem (100%)
Successfully installed systemu-2.5.2
Fetching: yajl-ruby-1.2.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed yajl-ruby-1.2.0
Fetching: ipaddress-0.8.0.gem (100%)
Successfully installed ipaddress-0.8.0
Fetching: ohai-6.20.0.gem (100%)
Successfully installed ohai-6.20.0
Fetching: net-ssh-2.7.0.gem (100%)
Successfully installed net-ssh-2.7.0
Fetching: net-ssh-gateway-1.2.0.gem (100%)
Successfully installed net-ssh-gateway-1.2.0
Fetching: net-ssh-multi-1.1.gem (100%)
Successfully installed net-ssh-multi-1.1
Fetching: hashie-2.0.5.gem (100%)
Successfully installed hashie-2.0.5
Fetching: moneta-0.6.0.gem (100%)
Successfully installed moneta-0.6.0
Fetching: chef-zero-1.7.2.gem (100%)
Successfully installed chef-zero-1.7.2
Fetching: puma-1.6.3.gem (100%)
Building native extensions. This could take a while...
Successfully installed puma-1.6.3
Fetching: chef-11.8.2.gem (100%)
Successfully installed chef-11.8.2
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Successfully installed archive-tar-minitar-0.5.2
Fetching: librarian-chef-0.0.2.gem (100%)
Successfully installed librarian-chef-0.0.2
21 gems installed

  1. 1 Posted by Eric on 07 Jan, 2014 05:12 PM

    Eric's Avatar

    I'm getting the exact same error. Did you find a fix by chance? Brand new installation on OS X Mavericks using RVM.

  2. 2 Posted by andrew on 14 Feb, 2014 04:50 PM

    andrew's Avatar

    Same issue with ruby 2.1.0 and rbenv doing 'gem install chef'.

  3. 3 Posted by andham on 20 Feb, 2014 10:47 PM

    andham's Avatar

    I had a similar issue when trying to install rails. Running gem update --system seemd to fix everything

  4. 4 Posted by Aaron on 27 Mar, 2014 06:45 PM

    Aaron's Avatar

    Thanks andham, had the same problem and that did it. RubyGems itself was out of date, perhaps because of the fresh install.

  5. Nick Quaranto closed this discussion on 25 Apr, 2014 12:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM