Ruby on Windows7 - could not find gem
Had the same problem. I have Windows 7 x64 so installed again with gem install buildr --platform mswin64
and it worked.
Can't install gems on Windows 7 64
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.
Windows 7 64-bit: Could not find a valid gem 'compass' (= 0), here is why: Unable to download data from https://rubygems.org/
Try upgrading your SSL certificates.
Download http://curl.haxx.se/ca/cacert.pem
Save this file anywhere you want, such as:
C:\cacert.pem
On the command line, tell Ruby where to find the cert file, such as:
set SSL_CERT_FILE=C:\cacert.pem
Try again.
gem install compass
If it works, you can make the cert file permanent by adding it in your control panel.
Credit and more info: https://gist.github.com/fnichol/867550
Ruby on Rails - doesn't recognise gem - installation issue?
You should not have to explicitly require gems in Rails. Just make sure you've added the flickr gem to your Gemfile
and you've run the bundle install
command.
Error installing gem install sass windows 7
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)
Related Topics
Hardcoded "Require 'Debug'" Can't Find the Sourcefile
What Is a More Ruby-Like Way of Doing This Command
How to Read a Clients Windows Login Name Using Ruby on Rails
How to Create Automatically a Instance of Every Class in a Directory
Incompatible Character Encoding in Rails - How to Just Fail/Skip Sensibly
How to Download File from Google Drive API with Service Account
How to Split a String of Repeated Characters with Uneven Amounts? Ruby
Gitlab: Invocation of Gitlab-Shell
Elegant Way to Only Show Records If They Exist in Rails Erb
Ruby: Calculate Time Difference Between 2 Times
Ruby: Module, Mixins and Blocks Confusing
How to Parse Mailbox File in Ruby
Byebug Fully Supports Windows or Not
Why Capypara + Rspect Tests Still Pass Even Though I Delete Application.Js File