Error while installing Compass through command prompt - ruby-on-rails

I am trying to install compass,had downloaded ruby version 22.0 but getting error.I tried to install updates as admin but still getting error.
C:\Ruby22-x64\bin>gem install compass
ERROR: Could not find a valid gem 'compass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNRESET
: An existing connection was forcibly closed by the remote host. - SSL_connect (https://api.rubygems.org/specs.4.8.gz).
Kindly help regarding this.

Related

IOError: HTTP session not yet started when running [gem install bundler]

I tried to install bundler by using gem install bundler, however, I got the following error message:
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - IOError: HTTP session not yet started (https://rubygems.org/specs.4.8.gz)
Also, I tried to install webpacker by using gem install webpacker, and I got the following error message:
ERROR: Could not find a valid gem 'webpacker' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://rubygems.org/specs.4.8.gz)
Can anyone help me fix these two issues? I have searched on Google, but I didn't see efficient answers.
I installed ruby-2.7.2 using rvm on M1 chip macOS Big Sur 11.4.
Thanks Thanks Thanks!!!
It seems that you are not accessing rubygems.org. It can be an authorization issue on your end. Make sure that api.rubygems.org is correctly authorized.
You can test it by running curl https://api.rubygems.org/specs.4.8.gz

gem calls always timeout (can't reach rubygems.org)

I have a new install of Ubuntu 18.04. I am trying to install everything I need for Ruby on Rails, but whenever I use the gem command I get a timeout error, like this:
chris#linuxbox:~/Sites$ gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
But if I paste that URL into my browser, I get the file right away!
Why can't I connect from the command line?

grunt error in windows

I am using windows machine, when i try to run the grunt comment getting error.
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
I found the solution in internet need to install gem install sass
I tried to install - gem install sass - getting error.
ERROR: Could not find a valid gem 'sass' (>= 0) in any repository
I found the solution in online gem sources --add https://rubygems.org/
I tried to install - gem sources --add https://rubygems.org/
Error fetching https://rubygems.org/:
Errno::ECONNREFUSED: Failed to open TCP connection to api.rubygems.org:443 (No connection could be made because the target
machine actively re fused it. - connect(2) for "api.rubygems.org" port
443) (https://api.rubygems.org/specs.4.8.gz)
Any suggestions to fix this errors.

installing rails unable to download data

I'm trying to install rails on a new computer and am running to the following command issue:
gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from http://gems.rubyforge.org/ -SSL_connect reuterned=1 error=0 state=SSLv2/v3 read server hello A: Unknown protocol (http://gems.rubyforge.org/latest_specs.4.8.gz)
Make sure you are using the latest rvm than you can update your certificates and rubygems. Or just use the non-ssl source.

Unable to install gems

I am unable to install gems, what changes do I need to do in my settings of browser to get downloaded? I am using Windows 7
C:\Users\MAX JOHN>gem install rails --no-ri --no-rdoc
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://ruby
gems.org/latest_specs.4.8.gz)
C:\Users\MAX JOHN>gem install mysql
ERROR: Could not find a valid gem 'mysql' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://ruby
gems.org/latest_specs.4.8.gz)
setting the source to http instead of https is not recommended as it creates security issues.
Try pinging https://rubygems.org, this will tell you if the problem is with your connection issues or not.
Assuming you're using Rails 3, have a look at this post on how to set up WEBrick to use SSL:
http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html
Do you have more than one version of Ruby installed? I accidentally upgraded without removing a prior installation, and removing that fixed the same issue for me.
I had similar problem, and solved it by:
Downloading the gem via web browser from https://rubygems.org/
Install it locally by cd ing into the dir where the gem was downloaded and ran:
gem install --local .gem

Resources