Pergunta

No laughing now... I say this because there are a lot people who have already asked, not necessarily for the sass gem but for other gems. Answers almost always deflect the asker into building a virtualbox linux environment. Okay, I've already got that, but I'd like to use the windows environment for personal reasons. I followed Sass's own directions: http://sass-lang.com/install

Ruby is supposed to be working in Windows 7, so I'd be grateful for answers that actually allow me to install gems in the windows environment. It's not a firewall issue. I turned off the firewall temporarily to check.

I've installed Ruby using the download at rubyinstaller.org. I'm trying to install the sass gem. Gem will not install any gems, so it's not sass-specific. It looks like the problem is related to https. I'd be grateful if someone could tell me how to make this work.

PS C:\Users\Chris> ruby -v
ruby 2.0.0p353 (2013-11-22) [x64-mingw32]

PS C:\Users\Chris> gem -v
2.1.5

PS C:\Users\Chris> gem install sass
gem : ERROR:  Could not find a valid gem 'sass' (>= 0), here is why:
At line:1 char:1
+ gem install sass
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ERROR:  Could n...), here is why::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server 
certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)

PS C:\Users\Chris> 
Foi útil?

Solução

After reading this on RubyGems Github that the problem might be with the installer I realized the problem might be with the installer. First I uninstalled the flawed version (Ruby 2.0.0-p353) and then installed 1.9.3-p484. Gem installs now run flawlessly, though not the latest preferred version.

Outras dicas

As for me I closed the current prompt and opened a new command prompt window after installing DevKit then it was working fine.

check below full series of installation of ruby and ruby on rails on windows 7

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top