Thursday, 5 September 2013

Having a hard time with Ruby on Rails on Windows 7

Having a hard time with Ruby on Rails on Windows 7

I've challenged myself to try and learn Ruby on Rails, and develop a basic
bootstrapped site. I come from Java, if that helps.
I've followed multiple tutorials, and watched lots of videos, but I am
having quite a hard time getting started with Ruby on Rails.
Details:
I am NOT using RVM
I am using Cygwin on a 64 bit Windows 7
I have all the packages required for ruby on rails
I have removed (or at least tried) all other places where rubygems, ruby,
and rails are, so it should all be in Cygwin
When I type which ruby in Cygwin, I get /usr/bin/Ruby
I have no idea how to get which RubyGems I'm using (mainly because Gems
and whatnot are completely alien to me right now, I haven't gotten than
far with the tutorials yet)
When I type which rails, I get /usr/bin/rails
The problem: When I do rails -v or rails server, I get this error: Could
not find gem 'sqlite3-ruby (>= 0) ruby' in any of the gem sources listed
in your Gemfile. Try running bundle install.
When I do bundle install or bundle update, I get a large error which I
can't seem to find anyone else getting:
Fetching source index for http://rubygems.org/
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:253:in

fetch_all_remote_specs': undefined methodlist' for # (NoMethodError) from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:234:in
block in remote_specs' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:231:ineach'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:231:in
remote_specs' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:165:infetch_specs'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/source.rb:70:in
specs' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:176:inblock
(2 levels) in index' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:175:in
each' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:175:inblock
in index' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/index.rb:7:in
build' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:174:inindex'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:168:in
resolve' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:107:inspecs'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:102:in
resolve_remotely!' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/installer.rb:43:inrun'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/installer.rb:8:in
install' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/cli.rb:219:ininstall'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/task.rb:22:in
run' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/invocation.rb:118:ininvoke_task'
from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor.rb:263:in
dispatch' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/base.rb:386:instart'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/bin/bundle:13:in <top
(required)>' from /usr/bin/bundle:23:inload' from /usr/bin/bundle:23:in `'
If anyone can help me get started, that would be great! I'm fine with
installing RVM, though when I do, I'm afraid I'll run into
incompatibilities because I'm doing this from Cygwin, and I messed this
all up 2 days ago, I finally got it to get this far.
The tutorials I'm using are:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
And pretty much a mix of lots of YouTube videos on this
Also, I was reading how Rails uses SQLLite for local database testing, is
this in any way going to affect my ability to use Mongo? I recently
learned how to use it, and already began using it for a little project I'm
working on to log things.

No comments:

Post a Comment