I have installed rails from railsinstaller.org and i tried to run a
Rails new myrubyblog
and after the gems were created it told me
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read sever certificate B: certificate Verify failed (https://rubygems.org/gems/i18n-0.7.0.gem)
An error occurred while installing i18n (0.7.0), and Bundler cannot continue. Make sure that 'gem install i18n -v '0.7.0''succeeds before bundling.
After that occured i then ran:
gem install i18n -v '0.7.0'
Then i ran
Rails new my
and the same thing occurred but instead it told me to run:
gem install json -v '1.8.3'
I don't know what else to do now could someone help me.
Related
I am trying to install ruby on rails but I keep on getting so many errors when I am trying to create an application.
Here is what I did on my Windows machine:
1) Downloaded railsinstaller-3.0.0.exe software
2) Installed Rails on my machine.
3) Verified that installation is successful:
E:\Rails>ruby -v ruby 2.0.0p598 (2014-11-13) [i386-mingw32]
E:\Rails>sqlite3 --version
3.8.7.2 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93
E:\Rails>rails -v DL is deprecated, please use Fiddle Rails 4.1.8
Now when I am trying to create an application I am getting below exception:
Command used is: rails new blog
run bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem)
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.
Now I tried to run this command - gem install rake -v '10.4.2', I started getting below error now:
E:\Rails>gem install rake -v '10.4.2'
ERROR: Could not find a valid gem 'rake' (= 10.4.2), 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://rubygems.org/specs.4.8.gz)
I am completely stuck here, can you please tell where I am making mistake in this installation? I tried various options given in SO but I am failing all the times.
If I try to start the server then I am getting below exception:
E:\Rails> cd blog
E:\Rails\blog>rails server
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine.
Run `bundle install` to install missing gems.
Now if I run bundle install I am getting new error:
E:\Rails\blog>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem)
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.
Again if I try to install rake I am getting new exception:
E:\Rails\blog>gem install rake -v '10.4.2'
ERROR: Could not find a valid gem 'rake' (= 10.4.2), 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://rubygems.org/specs.4.8.gz)
I am trying this for the past 2 days, but still I a not able to understand where I am doing mistake in installation.
Update your GemFile:
from
https://rubygems.org
to
http://rubygems.org
gem update --system will install the latest version of Rubygems, including the correct up-to-date trust certificates.
How to add Trust Certificate in Ruby
The solution for SL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed is here: How to Manually add Trust Certificate
Thanks for #luislavena solution & #BenY for answer.
D:\Ruby\blog>gem source
*** CURRENT SOURCES ***
http://rubygems.org/
D:\Ruby\blog>bundle install
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
The gem source already shows from http://rubygems.org,but when I do the "bundle install", it still shows fetching source index from https://rubygems.org/, so weird.
In my case, I solve this issue with a couple of steps
Step 1. Download RubyGems is package management from Here
Step 2. Unpack into a directory and cd there
Step 3. Install with: ruby setup.rb
Step 4. Run gem install rails
This step solves the issue for me!
When I run bundle install on ruby 2.1.2 I get:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem)
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.
When I run gem install rake I get:
ERROR: Could not find a valid gem 'bundle' (>= 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
When I run which bundle I get:
/usr/local/rvm/gems/ruby-2.1.2#global/bin/bundle
This error is preventing me from doing development work on localhost:3000 before deploying.
Does anyone know how to resolve this issue?
In the Gemfile in your rails application directory change:
source 'https://rubygems.org'
to
source 'http://rubygems.org'
Upgrade to the latest version of Ruby or at least a newer version than the one you have. I was using 2.0.0-p247 and received the same error. When I upgraded to 2.2.5 (which is the oldest supported version at the time of this writing) then everything worked.
I also had to run gem install bundler after upgrading ruby. Last, I'm using rbenv and installed ruby with rbenv install 2.2.5 then ran rbenv local 2.2.5.
iam new ruby on rails and this is the following error iam getting, while trying to install rails server i got a meaasge to install bundle install and when i tried to install bundle install iam getting the following message.
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/rdoc-
3.12.2.gem)
An error occurred while installing rdoc (3.12.2), and Bundler cannot continue.
Make sure that gem install rdoc -v '3.12.2' succeeds before bundling.
Bundle install on rails does not complete due to the following error:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.global.ssl.fastly.net/gems/jbuilder-2.2.5.gem)
An error occurred while installing jbuilder (2.2.5), and Bundler cannot
continue.
Make sure that gem install jbuilder -v '2.2.5' succeeds before bundling.
Each time I try to bundle install or bundle update, I get the same error.
How do I fix this problem?
Okay, so I got the solution to my problem. Looks like I was running an old version of bundler.
So I updated the version of bundler and then installed the required gem. Bundler version information and commands can be found on http://bundler.io/. It works perfectly fine now!
I'm trying to run my first rails app. The first error I get is:
Could not find gem 'sdoc (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
So then I try running "bundle install" and get:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/gems/i18n-0.6.9.gem)
An error occurred while installing i18n (0.6.9), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.6.9'` succeeds before bundling.
So then I tried "gem install il8n -v '(0.6.9)'" and I get:
ERROR: Could not find a valid gem 'il8n' (= 0.6.9), 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://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz)
---------------- UPDATE
I then changed
source 'https://rubygems.org'
to
source 'http://rubygems.org'
After trying bundle install I now get:
An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.
So then I try:
$ bundle update --source atomic
and get
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at bit.ly/bundler-issues.
Stuck! Any advice is much appreciated.
Charlie
Figured it out. Needed to update Xcode and agree to the new licence.
It works for RubyMine, Ubuntu 14.04x64
replace in your Gemfile
source 'https://rubygems.org'
to
source 'http://rubygems.org'
replace in your Gemfile
source 'https://rubygems.org'
to
source 'http://rubygems.org'
without 's' which mean secure
then
bundle install