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 26 Jan '11, 22:14 joeminkie |
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 27 Jan '11, 20:13 joeminkie Glad to hear you were able to figure it out.
(27 Jan '11, 20:17)
johns
|
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:
Then, edit
Then, edit
Finally, restart your Nginx:
That's it, you're done :)
permanent link
This answer is marked "community wiki".
answered 25 Feb '11, 19:45 seanf |