You could use rvm or rbenv instead. On Jun 24, 2013 10:05 PM, "Boopathi Rajaa" <legend.r...@gmail.com> wrote:
> I compiled Ruby from source, and installed it to /opt/ruby/ . > The purpose is to have two versions of Ruby 1.9 and Ruby 1.8 ... Certain > users can use 1.9 > > After creating a rails app (rails new app) , When a script performs > `bundle install`, the gems are trying to get installed in /opt/ruby/. > How to configure it to install it in user_home directory ? > > I don't want to use the solution, where I install the gems as the root > user to the ruby bin directory. > > This is the error that I get: > > Gem::Exception: Cannot load gem at > [/opt/ruby/lib/ruby/gems/1.9.1/cache/multi_json-1.7.7.gem] in > /home/boopathi/apps/abcd > An error occurred while installing multi_json (1.7.7), and Bundler cannot > continue. > Make sure that `gem install multi_json -v '1.7.7'` succeeds before > bundling. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/12228825-793f-4fa2-b7a1-7386c342b652%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BsTbyv59T82RA7aUpE9v14Pin%2Bb5auYE%3D20iw9MOkv9u3OMnQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.