I am trudging through the ruby on rails tutorial (so I’m quite ignorant), and I seem to be having a problem with the bundler. Originally, “bundle install” worked fine, but now I am getting this:
C:\Users\Me\RonR\first_app>bundle install
C:/Program Files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
from C:/Program Files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems.rb:244:in `activate_dep'
from C:/Program Files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems.rb:236:in `activate'
from C:/Program Files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems.rb:1307:in `gem'
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:18:in `<main>'
I tried following a suggestion in another thread to do “gem install bundler”, but that itself produces the following:
C:\Users\Me\RonR\first_app>gem install bundler
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - C:/Program Files (x86)/ruby-1.9.2/bin/bundle.bat
I’ve tried searching around, but I am so incredibly new to all of this that, sometimes, I can’t even tell if someone else’s problem is the same as mine. Please let me know if there’s any more pertinent information that I need to supply.
Thank you all in advance.
You need to install bundler (
gem install bundler) after either using an admin command prompt, changing the permissions ofC:/Program Files (x86)/ruby-1.9.2to allow your user to write to it, or changing the Ruby 1.9.2 installation path to someplace that is writable (such asc:\ruby-1.9.2)