Problems with railsinstaller

I am having problems with the railsinstaller on my Windows 8 laptop, which arises from the inability to start the server in the (project) directory using a command rails s

, but contrary to many tutorials, I get this every time.

C:\Sites\demo>rails s
Could not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on thi
s machine.
Run `bundle install` to install missing gems.

      

Then when I try to run the package it returns this error.

C:\Sites\demo>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.

C:\Sites\demo>

      

But everything I tried to resolve "FetchError" was useless.

Can someone please help me with this error?

+3


source to share


3 answers


It seems to be Windows specific. I had this problem and solved it by updating to the newest RubyGems.



  • You can download the installer (zip) from the RubyGems website
  • Unpack it somewhere that you can easily access (let's say C:\Ruby\RubyGems

    )
  • Raise its command line ( Win + R , cmd

    , Enter )
  • Change to the directory where you unpacked the installer to:
    cd C:\Ruby\RubyGems

  • Run ruby setup.rb

+4


source


If you are doing it yourself, in the Gemfile, replace the url https://rubygems.org/ with the same as http://rubygems.org .



+2


source


The problem comes from https: // as @Saravanan said. You can fix this problem using the following command in the ruby ​​on rails command line tool.

gem sources -a http://rubygems.org/

      

If you update this source to http: // url. you would solve this problem.

0


source







All Articles