I want to install a gem locally (not as part of a rails app though) but it requires a higher version of rubygems.
However this added:/home/username/gems/gems/rubygems-update-1.4.2/
I added this in my .bash_profile:
(logged out/in) and ran
This makes me think it's using the gem command in my local folder. gem update -system still doesn't work but using the folder it downloaded above:
But it still says it's version 1.3.1. Where is it installing 1.4.2? Am I even close?
asked Jan 26 '11 at 22:14
So, after searching around some more, I found this: http://forum.webfaction.com/viewtopic.php?id=4918 and installed my own ruby version. Then I tried to install rubygems but got this error:
Eventually I found this: http://docs.rubygems.org/read/chapter/19#page98 and copied the following files from ~/lib to ~/ruby/lib/ruby/site_ruby/1.8
Everything seems to be working for now...
answered Jan 27 '11 at 20:13
Here's how we recommend installing RubyGems locally. This assumes that your Passenger-based Rails app is named "rails" and that your username is "your_username":
In a SSH session, run the following commands:
Finally, restart your Nginx:
That's it, you're done :)
This answer is marked "community wiki".