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
Related
Whenever I follow the instructions on the compass-style.org website I keep getting this error in the terminal:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
MARS:Enrollment MARS$ gem install compass
I don't know how to troubleshoot things like this and was wondering if anyone had encountered this issue before and how they resolved it.
Thanks.
When I'm trying to connect to a WSDL( I'm writing a client to connect to a WSDL), I'm getting following error:
>/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/httpi-2.0.2/lib/httpi/adapter/net_http.rb:36:in `rescue in request': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (HTTPI::SSLError)
Ruby Version :2.1, Windows 7 64bit OS. Following are the options i tried
1. I tried changing source to http://rubygems.org/ instead of https://rubygems.org/ as suggested in some posts..
2. I updated gem version to 2.2.3
3. Added Cacert.pem
None of these helped..
Could you let me know how this can be solved?
Stuck with this issue for past few days.
Appreciate help
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.
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
I am using Windows 7 and trying to install rspec, but I get the following error when I type gem install rspec into the terminal.
ERROR: Could not find a valid gem 'rspec' <>=0>, here is why:
Unable to download data from https://rubygems.org/ - SSL_connect SYSCA
LL returned=5 errno=0 state=SSLv2/v3 read server hello A <https://rubygems.org/l
atest_rspecs.4.8.gz>
ERROR: Possible alternatives: rspec
I've looked all over the internet for a solution, but I haven't managed to find anything.
The "SSL" part of the error message sounds similar to this issue with the certificates you have locally and the certificate that rubygems.org is using. There are specific instructions for Windows that show you how to download an updated certificate file and use it; it might be worth a shot.