Make sure "gem install ~" succeeds before merging
Today I started learning Ruby on rails. I have installed Ruby, DEVELOPMENT KIT, SQLite3, bundler and rails.
Next, my tutorial says run rails new todo
in console. Then the following message appeared:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/coffee-rails-4.0.1.gem)
An error occurred while installing execjs (2.2.2), and Bundler cannot
continue.
Make sure that `gem install execjs -v '2.2.2'` succeeds before bundling.
I did the following.
C:\rubyfolder>gem install execjs -v 2.2.2
Then it appeared as follows:
Fetching: execjs-2.2.2.gem (100%)
Successfully installed execjs-2.2.2
Parsing documentation for execjs-2.2.2
Installing ri documentation for execjs-2.2.2
Done installing documentation for execjs after 1 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 (https://api.rubygems.org/specs.4.8.gz)
1 gem installed
Then I ran again rails new todo
. Then a message appears stating that the execjs
above message has been replaced with coffee-script
.
Make sure that `gem install coffee-script -v '2.3.0'` succeeds before bundling.
Then I installed the coffee script.
I've repeated this kind of work 3 or 4 times, but it doesn't end there. What should I do?
( execjs
may not be the first of this loop. I don't see the first part of the logs)
source to share
I faced a similar problem. This is what worked for me:
- In yours
Gemfile
or wherever you listed the gem list and replacesource 'https://......'
with this onesource 'http://.......'
, otherwise it will keep asking for aMake sure that gem install gem_name__ v xxx'
successful job before merging. - Do
bundle install
orrails new todo
- Done, this time a mistake.
source to share
Just running gem install
separatly does not solve the root of the problem. It looks like you haven't installed all the required dependencies for Rails. Try to fill the libraries in the official instructions .
Also I can see from you the path you are trying to use on Windows, and you probably need to install the dependencies that way, because the official documentation does not provide instructions for that OS:
gem install rails --include-dependencies
source to share