I'm in the middle of learning rails, and I'm trying to get heroku up and running. When I install the heroku toolbelt, though, produces a number of errors. If i try to run any rails command, I get something like this:
C:\Users\Ezra\Desktop\Sites\demo_app>rails -v
C:/Program Files (x86)/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `r
eport_activate_error': Could not find RubyGem railties (>= 0) (Gem::LoadError)
from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems
.rb:244:in `activate_dep'
from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems
.rb:236:in `activate'
from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems
.rb:1307:in `gem'
from C:/RailsInstaller/Ruby1.9.3/bin/rails:18:in `<main>'
Additionally, running ruby -v gives me ruby 1.9.2p290, even though I have ruby 1.9.3 installed. In trying to fix this, I found that uninstalling ruby 1.9.2p290 would cause my ruby version to simply revert to 1.9.3p125, but after doing so heroku no longer works:
C:\Users\Ezra\Desktop\Sites\demo_app>heroku login
'"C:\Program Files (x86)\ruby-1.9.3\bin\ruby.exe"' is not recognized as an inter
nal or external command, operable program or batch file.
Gem environment after installing heroku toolbelt:
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.2
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: "C:/Program Files (x86)/ruby-1.9.3/bin/ruby.exe"
- EXECUTABLE DIRECTORY: C:/Program Files (x86)/ruby-1.9.3/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1
- C:/Users/Ezra/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
Gem environment after uninstalling ruby1.9.2p290:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.16
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
- C:/Users/Ezra/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
I'm running windows 7, and I'm not using rvm because cygwin makes me cry.
Any and all suggestions would be much appreciated.