I am new to this forum and web development :-) Career change.... I am having problems with the installation. I am following the instructions from Railsbridge Installfest for MS Windows.
I am now stuck at Create a Rails app, step rails new test_app. Everything else so far has installed without any issues. I get the following output and error:
run bundle install
DL is deprecated, please use Fiddle
Fetching gem 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.
I would appreciate help in what I need to do next. I am not very technical and would love some assistance! Thanks a lot.
Related
I've just downloaded Rails Installer (Rails 4.1.8) on my windows machine, and when I try to run bundle install I get the following error:
C:\Sites\BettingSite>bundle install
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.
I also had an error "DL is deprecated please use fiddle" but I prevented this from appearing by following the second answer down on the following StackOverFlow question: Ruby 2.0.0p0 IRB warning: "DL is deprecated, please use Fiddle"
Can someone please tell me how to solve this error?
Thanks too #Stephane J's link this has been solved.
The problem was that I needed to change:
source 'https://rubygems.org'
to
source 'http://rubygems.org'
In the Gemfile, as was recommended on this link: bundle install fails with SSL certificate verification error
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!
I have the following error. Could you please let me know how to solve them?
Many thanks in advance.
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.
C:\Sites\firstTest>gem install rake -v '10.4.2'ERROR: While executing gem... (Encoding::UndefinedConversionError) U+00E9 to IBM866 in conversion from UTF-16LE to UTF-8 to IBM866
You may need to manually upgrade your rubygems version as explained here: unable-to-pull-data-from-https-rubygems
I have an existing project which is stored on bitbucket, and just cloned that onto my windows box.
I enter the main project directory and run
rails server
I get the message:
Could not find rake-10.4.1 in any of the sources
Run `bundle install` to install missing gems.
so I run bundle install - which responds:
DL is deprecated, please use Fiddle
Fetching gem 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.1.gem)
An error occurred while installing rake (10.4.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.4.1'` succeeds before bundling.
So I run command
gem install rake -v '10.4.1'
Which responds:
ERROR: Could not find a valid gem 'rake' (= 10.4.1), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)
I read some other posts and people were asked to run this command:
ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
Which responds:
"OpenSSL 1.0.0o 15 Oct 2014"
Please can somebody guide me as to what is wrong here!
This seems to be some longstanding issue with Ruby on windows.
I solved it by following these windows fix instructions:
https://gist.github.com/fnichol/867550
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!