Creating a Rails app in Windows - ruby-on-rails

I have been trying to install Rails on my Windows PC for the past days. I got the bundle from www.railsinstaller.org and it installed great. When creating a new application I can see that all the app files are created then I get the following error:
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.
Hoping someone can help with resolving this.

This link could be helpful.
Creating a Ruby on Rails environment on Windows, in a VM Vagrant Box
Instead of install ROR directly onto Windows, you might want to use a Linux like OS. Not because Rails environment cannot be setup in Windows. But all the problems you will encounter, especially when most of tools are designed for that when you are not using a Linux like OS and try to mimic that.
But I highly recommend you skip doing all that if you are just trying to learn, and use Nitrous.io, which is an online IDE that gives you all the tool.
IMHO, dealing with Windows in this case is a waste of time.

First message:
DL is deprecated, please use Fiddle Fetching gem metadata ..
is a warning message. You read about it here.
The main error is encountered while installing rake.
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.
To solve this, you should first update Rubygems:
gem update --system
And then update Bundler:
gem install bundler

I simply run
gem update --system
and it fixed. More info please check bundle install fails with SSL certificate verification error

Related

Newbie: Ruby on rails. Error message on rails installation

I am trying to get the ruby on rails software on my computer(windows). But i have been getting this result when I input
gem install rails -v 4.2.3
in command prompt.
Error: could not find valid gem rails (=4.2.3)
here is why
Unable to download data from https://ruby_gems.org/- SSL_connect returned=1 errno=1 state=SSLv3 read server certificate B: certificate verify failed (htpps://api.rubygems.org/specs.4.8.gz)
How do I proceed so I can start using my ruby on rails to learn more?
Thanks
I'm assuming you followed some instructions like this one that uses the ruby installer to install Ruby and the needed dependencies.
Awhile ago I had an issue similar to this when I was behind a proxy trying to install a new gem. After googling I found I had to specify the source and proxy flags in the command to install the new gem.
gem install rails --source http://www.rubygems.org --http-proxy http://user:password#proxyip:port
But change the source as appropriate and remove the proxy flag if you're not behind one.
Thanks for the responses guys. But I needed a very basic answer since i am v v v new to this.
For anyone facing the same problem, i found an answer that worked and it just involved me writing this command in command prompt and it did the trick. will get to understanding how this all works as time goes on
https://github.com/jhu-ep-coursera/fullstack-course1-module1/wiki#q-what-to-do-when-rails-fails-to-update
gem source -r https://rubygems.org/
gem source -a http://rubygems.org/
gem update --system
gem install rails -v 4.2.3
Hope this helps other newbies.

ERROR: Could not find a valid gem 'rake' <=10.4.2.>

Tried to bundle install in my first ruby project, doing a tutorial so i'm pretty new to all of this coding stuff. I was following part of the tutorial and everything was going fine until I encountered this:
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
An error occured while installing rake <10.4.2>, and Bundler cannot continue.
Make sure that 'gem install rake -v '10.4.2' succeeds before bundling.
Please explain in layman terms
Make sure that 'gem install rake -v '10.4.2' succeeds before bundling.
Type gem install rake -v '10.4.2 in to your command line and it'll install the rake gem.
Gems are simply other Ruby programs you can add to use within your program. See here: https://rubygems.org/ and here: https://en.wikipedia.org/wiki/RubyGems

Following RailsBridge Installfest for Windows 8.1 - Failed Installing Ruby

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.

Make sure that 'gem install ~ ' succeeds before bundling

I began learning Ruby on rails today.
I have installed Ruby, DEVELOPMENT KIT, SQLite3, bundler and rails.
Next, My textbook says to run rails new todo in the 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 as follows.
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
Next, I ran rails new todo again. Then, the message that execjs of above message is replaced by coffee-script appeared.
Make sure that `gem install coffee-script -v '2.3.0'` succeeds before bundling.
Next, I installed coffee-script.
I have repeated this kind of work for 3 or 4 times, but it don't finish. What should I do?
(execjs might not be the first of this cycle. I can't see first part of logs)
I have faced similar kind of issue. This is what worked for me:
In your Gemfile or wherever you have specified the gems list and replace source 'https://......' with this source 'http://.......' otherwise it will keep on asking Make sure that gem install gem_name__ v xxx' succeeds before bundling.`
Do bundle install or rails new todo
Done, no error this time.
Just to run gem install separatly doesn't solve the root of the problem. Looks like you didn't install all needed development dependencies for Rails. Try to complete libraries within official instruction.
Also I see from you path you try it on Windows and probably you need to install dependencies this way, cause official documentation doesn't provide instructions for this OS:
gem install rails --include-dependencies

AWS rugy gem seems to be failing on heroku and locally

Anyonw have any idea what's happening with the aws-sdk gem. I noticed this popped up in one of my applications today and it's effecting more then one now. I get the same error in all app's yet the link to the gem seems to be working.
On Heroku
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (https://s3.amazonaws.com/production.s3.rubygems.org/gems/aws-sdk-1.19.0.gem)
An error occurred while installing aws-sdk (1.19.0), and Bundler cannot
continue.
Make sure that `gem install aws-sdk -v '1.19.0'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby/Rails app
And locally:
$ gem install aws-sdk
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (http://production.cf.rubygems.org/gems/aws-sdk-1.19.0.gem)
Thanks in advance.
Looks like a botched deploy of some kind, version 1.18.0 looks like it's available. 1.19.0 was released today, do you really need to be using that version? Did you do a bundle update across your whole application or something that may have forced all gems to update? Don't do that! :)
Might want to let them know: https://github.com/aws/aws-sdk-ruby

Resources