views:

73

answers:

2

I have no internet connection on server machine, so I need to install gems locally. I tried

gem install rails-2.3.4.gem

But, I'm getting errors.

How Can I install gems locally.

Thanks.

+1  A: 
Chris McCauley
Yes, I noticed my mistake thanks.Here I found all dependencies.http://rubygems.org/gems/rails
metdos
It gets really messy with the way 1, there are a lot of dependicies, but method 2 is a lot easier, obviously as you said better.
metdos
A: 

If you are working with Rails, I'd suggest unpacking the gems you need to vendor before deploying to the server.

Josiah Kiehl
Yes, I work with rails but I didn't understand what you mean.
metdos
If you run "rake gems:unpack" then you will "unpack" your gems to your application's vendor directory. At this point, all of the gem code is stored within your application, ready for deployment.
Josiah Kiehl
Example: http://railscasts.com/episodes/110-gem-dependencies
Josiah Kiehl