I got this when I tried to update gems:
LJ$ gem update --system
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name
and this when trying to install a gem:
LJ$ gem install mongrel
ERROR: Could not find a valid gem 'mongrel' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name
What's the problem?
Related
An error occurred while installing xmlrpc (0.3.2), and Bundler
cannot continue.
In Gemfile:
xmlrpc
run
gem install xmlrpc
and for every gem the same, like
gem install unf
I am using Debian 9 and I am trying to install gettc https://github.com/seri/gettc
I have done:
sudo apt-get install ruby gem
and
gem install --local gettc
gives me the error:
ERROR: Could not find a valid gem 'gettc' (>= 0) in any repository
You need to drop the --local flag if you want to install a gem located on a remote gem server and not on your local machine.
I am trying to run on my vagrant machine
sudo gem install foreman --source http://rubygems.org
But i am getting the following error.
ERROR: Could not find a valid gem 'foreman' (>= 0), here is why: Unable to download data from https://rubygems.org/ - no such name (ht tps://rubygems.org/specs.4.8.gz)
can someone tell me what could be wrong?
I've installed the ruby devkit on Windows 7 but it's unable to install json using the following command:
gem install json --platform=ruby
I'm getting this error:
ERROR: Could not find a valid gem 'json' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A:
unknown protocol (https://api.rubygems.org/specs.4.8.gz)
I'm on ruby 2.3.1p112 with RubyGems 2.5.1.
If you have a Gemfile, change the first line in Gemfile from https to http, it should do the trick.
Also, you can install gems global by creating a Gemfile and running bundle install from the directory the Gemfile is created. So, instead of using the gem install command, create a Gemfile and run bundle install in it.
This is the original
source 'https://rubygems.org'
gem 'test'
Change to
source 'http://rubygems.org'
gem 'test'
If you don't, you can pass the -s option to gem install and specify the url to http://rubygems.org
os: os x lion
i was not able to install any gems . checked the gem sources http://rubygems.org was in the list. tried using the system gem (ruby 1.8.7) and rvm ruby (1.9.2). For any gem install GemNotFoundException was thrown.
gem install sinatra --no-ri --no-rdoc
ERROR: Could not find a valid gem 'sinatra' (>= 0) in any repository
ERROR: Possible alternatives: sinatra
SKYLINE:rubygems-1.8.6 avinash$ gem sources
*** CURRENT SOURCES ***
http://rubygems.org/
Any ideas?
Help would be appreciated.
-Avinash
Wouldn't be simply that you are not connected to the internet when trying to download the gem ? ... (I had the same, it looks stupid, but it happens ;