Error installing gem install sass windows 7 - ruby

please help me to resolve this installation error.
first install ruby "Ruby 2.1.5" and then wrote in cmd "gem install sass" but got an error
C:\Ruby21
C:>ruby -v ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
C:>gem install sass ERROR: Could not find a valid gem 'sass' (>= 0),
here is why:
Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Se produjo un error durante el intento de conexi?n
ya que la parte conectada no respondi? adecuadamente tras un periodo
de tiempo, o bien se produjo un error e n la conexi?n establecida ya
que el host conectado no ha podido responder. - con nect(2) for
"api.rubygems.org" port 443 (https://api.rubygems.org/latest_specs.4
.8.gz)
I have removed the proxy and have even given me free ip and permissions to install "gem install sass" but the error keeps coming but now appears to be another
C:\Users\usuario>gem install sass
ERROR: Could not find a valid gem 'sass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

I got friends thanks to https://www.youtube.com/user/johanricardo1108/about
that have:
gem sources -a http://rubygems.org/
comfirmed and then this:
gem install sass
C:\Ruby21>gem sources -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] y
http://rubygems.org/ added to sources
C:\Ruby21>gem install sass
Fetching: sass-3.4.12.gem (100%)
Successfully installed sass-3.4.12
Parsing documentation for sass-3.4.12
Installing ri documentation for sass-3.4.12
Done installing documentation for sass after 6 seconds
WARNING: Unable to pull data from 'https://rubygems.org/': SSL_connect returned
=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (htt
ps://api.rubygems.org/latest_specs.4.8.gz)
1 gem installed
C:\Ruby21>sass -v
Sass 3.4.12 (Selective Steve)

Check out your firewall and network connections. I have this problem when connecting through the network of company where I work, because we have a proxy that blocks those.
Check for these addresses and ports to be open in a firewall:
rubygems.org 443
github.com 443
s3.amazonaws.com 443

Related

How to resolve 'certifcate verify failed' error on vagrant box built using Puphpet

I built a Ubuntu (14.04) box using Puphpet.
When I run the command vagrant up. The box does get generated but the provisioning is interrupted by the following error:
==> default: ERROR: Could not find a valid gem 'deep_merge' (>= 0), here is why :
==> default: Unable to download data from https://rubygems.org/ - SSL_ connect returned=1 errno=0 state=error:
certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)
==> default: ERROR: Could not find a valid gem 'activesupport' (>= 0), here is why:
==> default: Unable to download data from https://rubygems.org/ - SSL_ connect returned=1 errno=0 state=error:
certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)
==> default: ERROR: Could not find a valid gem 'vine' (>= 0), here is why:
==> default: Unable to download data from https://rubygems.org/ - SSL_ connect returned=1 errno=0 state=error:
certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)
The SSH command responded with a non-zero exit status. Vagrant assumes
that this means the command failed. The output for this command should
be in the log above. Please read the output to determine what went
wrong.
I am using Vagrant 1,8.1. The relevant Vagrantfile and config.yaml file. I am working on a Windows 7 host machine.
Appreciate any help in the matter.
Melekes' answer is probably on the right path. There was an SSL upgrade in RubyGems which caused quite a few headaches in other tools using Ruby. You can manually upgrade the RubyGems gem itself using something like gem install rubygems to upgrade, or follow the directions at the Ruby site to manually fix this if the automatic upgrade doesn't work.
http://guides.rubygems.org/ssl-certificate-update/#manual-solution-to-ssl-issue

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

I'm trying to install sass. But not able to install.
Im facing this issue.
C:\Users\Administrator>gem install sass
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNABORTED: An established connection was aborted by the software i
n your host machine. - SSL_connect (https://rubygems.org/quick/Marshal.4.8/sass-
3.4.13.gemspec.rz)

Sass installation issue in Windows 7

I am trying to install sass for the first time. Followed the following steps:
Installed Ruby 2.1.5 in Windows 7 64 bit from http://rubyinstaller.org/ successfully
ruby -v in cmd
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
gem install sass in cmd
I got the following error:
ERROR: Could not find a valid gem 'sass' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed...
Fixed the above SSL error with the following line (found the solution in Stack Overflow):
gem source -a http://rubygems.org/
Again, I tried running gem install sass. I got the following error.
C:\Users\Michael>gem install sass
D:/Ruby21/lib/ruby/2.1.0/psych.rb:370:in parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError) from D:/Ruby21/lib/ruby/2.1.0/psych.rb:370:inparse_stream' from D:/Ruby21/lib/ruby/2.1.0/psych.rb:318:in parse' from D:/Ruby21/lib/ruby/2.1.0/psych.rb:245:inload' from D:/Ruby21/lib/ruby/2.1.0/rubygems/config_file.rb:333:in load_file' from D:/Ruby21/lib/ruby/2.1.0/rubygems/config_file.rb:198:ininitialize' from D:/Ruby21/lib/ruby/2.1.0/rubygems/gem_runner.rb:74:in new' from D:/Ruby21/lib/ruby/2.1.0/rubygems/gem_runner.rb:74:indo_configuration' from D:/Ruby21/lib/ruby/2.1.0/rubygems/gem_runner.rb:39:in run' from D:/Ruby21/bin/gem:21:in'
Can anyone help me fix this? I even tried with the 64 bit Ruby but still I am stuck at this point.
Thanks in advance.
Try by downloading an older version of Ruby as sometimes new versions are not packaged with everything. I would also try to use a compiler app such as Koala. if you only want to try sass out.

Setting up Rails server

I'm a beginner in Ruby, following "Creating a New Rails Project".
But I can't start the server. I tried:
running rails server but got:
Could not find gem 'tzinfo-data <>= 0> x86-mingw32' in the gems available on the machine.
Run 'bundle install' to install missing gems.
running bundle install but got:
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
Make sure that 'gem install rake -v '10.4.2'' succeeds before bundling.
gem 'tzinfo-data' but got:
Unknown command tzinfo-data
gem install tzinfo-data:
Could not find a valid gem 'tzinfo-data' <>= 0>, here is why:
Unable to download data from...
I have Windows 8.1. 64-bit
tzinfo-data was resolved with a cacert.pem file following the guide in the accepted answer. Today I am trying to install bootstrap-sass gem file. Do I need an another .pem file?
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/boots
trap-sass-3.3.1.0.gem)
An error occurred while installing bootstrap-sass (3.3.1.0), and Bundler cannot
continue.
Make sure that `gem install bootstrap-sass -v '3.3.1.0'` succeeds before
bundling.
You have a common SSL issue.
You will see this error message:
certificate verify failed
The error message is because your system needs a new SSL certificate.
Here's information about it:
http://railsapps.github.io/openssl-certificate-verify-failed.html
On Windows:
Try upgrading your SSL certificates.
Download http://curl.haxx.se/ca/cacert.pem.
Save this file anywhere you want, such as:
C:\RailsInstaller\cacert.pem
On the command line, tell Ruby where to find the cert file, such as:
set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem
Retry the gem installation.
If it works, that's great. If you want this to work with every project on your system, and also survive rebooting, then you can make the cert file permanent by adding the cert system-wide. To do this, use your Windows control panel.
Credit and more info: https://gist.github.com/fnichol/867550

Cannot install SASS on windows 7 (64 bit)

I am trying to get SASS installed on my windows machine at work, however after installing ruby I cannot seem to install it ..
Ruby Version - 2.1.5
The error I am getting when running gem install sass on the command prompt :
ERROR: Could not find a valid gem 'SASS' ,.= 0., here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed https://api.rubygems.org/latest_specs.4.8.gx
Has anyone else encountered this? Know a way around it??
Turns out the latest download of ruby is having issues with it's SSL cert .. Installed an older version - works a treat

Resources