# Gem install rails locally without Internet?

**URL:** <https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428>\
**Category:** Rails\
**Created:** [June 15, 2006, 4:07am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428 "2006-06-15T04:07:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 4:07am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/1 "2006-06-15T04:07:40Z")

</div>

I’ve got a machine that cannot be connected to the Internet (think  
security precautions in a bank) and am thus trying to install rails  
using

gem install rails-1.1.2.gem

thinking this would work. It does not. I get errors about  
ActiveSupport module missing. It makes it sound like I have to get  
separate gems for ActiveSupport, ActiveRecord, etc., and install them  
all one at a time, which seems strangely tedious.

So then how do I install the entire Rails system without the Internet  
connection? What file(s) do I need? Thanks.

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 4:17am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/2 "2006-06-15T04:17:24Z")

</div>

I have a similar problem at my work.

I downloaded edge rails onto my machine and that contains everything  
that I  
needed. I then copied it over to the machine that I needed to run from.

It got a little more difficult installing mongrel from local gems…  
There  
are quite a few.

Hope this helps

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 4:21am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/3 "2006-06-15T04:21:51Z")

</div>

Thanks. So then you’re saying you did a normal gem remote install on  
one machine, then simply copies of the directories to the other machine?  
I suppose I could do that. This is a Linux system so I just need to  
concern myself with files.

Daniel ----- wrote:

> I have a similar problem at my work.
> 
> I downloaded edge rails onto my machine and that contains everything  
> that I  
> needed. I then copied it over to the machine that I needed to run from.
> 
> It got a little more difficult installing mongrel from local gems…  
> There  
> are quite a few.
> 
> Hope this helps

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 4:27am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/4 "2006-06-15T04:27:53Z")

</div>

No I didn’t use gems at all… I installed Edge Rails straight from  
SVN.

I have just found an unpack command for gems tho, I’m not sure how to  
use it  
but I have asked on the ruby-talk mailing list. I’ll report back if I  
find  
out how.

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 4:43am UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/5 "2006-06-15T04:43:05Z")

</div>

Gaudi Mi wrote:

> I’ve got a machine that cannot be connected to the Internet (think  
> security precautions in a bank) and am thus trying to install rails  
> using
> 
> gem install rails-1.1.2.gem
> 
> thinking this would work. It does not. I get errors about  
> ActiveSupport module missing. It makes it sound like I have to get  
> separate gems for ActiveSupport, ActiveRecord, etc., and install them  
> all one at a time, which seems strangely tedious.
> 
> So then how do I install the entire Rails system without the Internet  
> connection? What file(s) do I need? Thanks.

What I do is just download the proper gems, move the gems to the  
disconnected machine and install them in the proper order. This is  
actually detailed on the wiki here:  
[Peak Obsession](http://wiki.rubyonrails.com/rails/pages/GemRails).

I have also listed the gems you’ll need below. The order I have listed  
them in are the order you’ll need to install them in (yes, the order is  
important).

1. Activesupport - [http://rubyforge.org/projects/activesupport/](http://rubyforge.org/projects/activesupport/)
2. Actionpack - [http://rubyforge.org/projects/actionpack/](http://rubyforge.org/projects/actionpack/)
3. Actionmailer - [http://rubyforge.org/projects/actionmailer/](http://rubyforge.org/projects/actionmailer/)
4. Activerecord - [http://rubyforge.org/projects/activerecord/](http://rubyforge.org/projects/activerecord/)
5. Actionwebservice - [http://rubyforge.org/projects/aws/](http://rubyforge.org/projects/aws/)
6. Rake - [http://rubyforge.org/projects/rake/](http://rubyforge.org/projects/rake/)
7. Rails - [http://rubyforge.org/projects/rails/](http://rubyforge.org/projects/rails/)

To install them, (taken from the wiki)

"…download the .gem files from the above links, place them in a local  
directory, then issue the gem install gemname command from this  
directory for each gem in order.

Of course, you will then have to continue downloading and updating each  
of these gems manually if you wish to stay current."

---

<div class="post-metadata">

**Author:** ![gaudimila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/87869e/32.png) [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Post date:** [June 15, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/gem-install-rails-locally-without-internet/63428/6 "2006-06-15T15:38:00Z")

</div>

Thanks, this looks like the answer I needed. I’m a little surprised  
that there’s no ‘batch’ way to do this with Rake, since everything else  
Ruby and Rails is always so easy, but I’m not complaining.

Gaudi

noobonrails wrote:

> Gaudi Mi wrote:
> 
> > I’ve got a machine that cannot be connected to the Internet (think  
> > security precautions in a bank) and am thus trying to install rails  
> > using
> > 
> > gem install rails-1.1.2.gem
> > 
> > thinking this would work. It does not. I get errors about  
> > ActiveSupport module missing. It makes it sound like I have to get  
> > separate gems for ActiveSupport, ActiveRecord, etc., and install them  
> > all one at a time, which seems strangely tedious.
> > 
> > So then how do I install the entire Rails system without the Internet  
> > connection? What file(s) do I need? Thanks.
> 
> What I do is just download the proper gems, move the gems to the  
> disconnected machine and install them in the proper order. This is  
> actually detailed on the wiki here:  
> [Peak Obsession](http://wiki.rubyonrails.com/rails/pages/GemRails).
> 
> I have also listed the gems you’ll need below. The order I have listed  
> them in are the order you’ll need to install them in (yes, the order is  
> important).
> 
> 1. Activesupport - [http://rubyforge.org/projects/activesupport/](http://rubyforge.org/projects/activesupport/)
> 2. Actionpack - [http://rubyforge.org/projects/actionpack/](http://rubyforge.org/projects/actionpack/)
> 3. Actionmailer - [http://rubyforge.org/projects/actionmailer/](http://rubyforge.org/projects/actionmailer/)
> 4. Activerecord - [http://rubyforge.org/projects/activerecord/](http://rubyforge.org/projects/activerecord/)
> 5. Actionwebservice - [http://rubyforge.org/projects/aws/](http://rubyforge.org/projects/aws/)
> 6. Rake - [http://rubyforge.org/projects/rake/](http://rubyforge.org/projects/rake/)
> 7. Rails - [http://rubyforge.org/projects/rails/](http://rubyforge.org/projects/rails/)
> 
> To install them, (taken from the wiki)
> 
> "…download the .gem files from the above links, place them in a local  
> directory, then issue the gem install gemname command from this  
> directory for each gem in order.
> 
> Of course, you will then have to continue downloading and updating each  
> of these gems manually if you wish to stay current."
