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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could either
Find all the dependencies of the gem and install them with gem install
or better
Copy the gem dirs from another machine (same O.S. etc). You can find the required directory by running the
gem environmentcommand and noting the GEM PATHS (see below). You may also have to copy files from the EXECUTABLE DIRECTORY.RubyGems Environment: