# Ruby on Rails - RHEL

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939>\
**Category:** Rails\
**Created:** [July 1, 2010, 10:10am UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939 "2010-07-01T10:10:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 1, 2010, 10:10am UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/1 "2010-07-01T10:10:04Z")

</div>

Hi,

I am fighting to install Redmine therefore I need to install Ruby on  
Rails to a machine behind many firewalls. OS is RHEL.

My idea was to download the packages, make and install…

There was some difficulties because the latest Ruby in the RHEL repo was  
not modern enough for gem. So I donwloaded the source of ruby. Its  
intall was perfect. After that point I managed to install gem.

But since this, I have no idea how can I install the rake, rail, etc.  
packages with gem from local files because the firewalls do not allowe  
me public internet connection in this host.

Can you help me?

Best Regards,

Gabor

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 1, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/2 "2010-07-01T14:37:31Z")

</div>

On Thu, Jul 1, 2010 at 5:10 AM, Gabor A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> But since this, I have no idea how can I install the rake, rail, etc.  
> packages with gem from local files because the firewalls do not allowe  
> me public internet connection in this host.
> 
> Can you help me?  
> gem install rake  
> gem install rails  
> gem install …  
> gem --help

–  
Leonardo M…  
There’s no place like ~

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 1, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/3 "2010-07-01T17:45:39Z")

</div>

Leonardo M. wrote:

> On Thu, Jul 1, 2010 at 5:10 AM, Gabor A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > But since this, I have no idea how can I install the rake, rail, etc.  
> > packages with gem from local files because the firewalls do not allowe  
> > me public internet connection in this host.
> > 
> > Can you help me?  
> > gem install rake  
> > gem install rails  
> > gem install …  
> > gem --help

Leonardo, that obviously won’t work since the OP said he has no public  
Internet connection.

To the OP: If you can’t put the gems you need in the app’s /vendor  
directory, then you’ll have to install the gems by downloading the .gem  
files from a machine that can get them (gem fetch may help here) and  
copying them over to the server, then using gem install --local on the  
server to install from local .gem packages.

But avoid this if at all possible. If you can use /vendor or get out to  
[rubygems.org](http://rubygems.org) from the server, so much the better.

> –  
> Leonardo M…  
> There’s no place like ~

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 2, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/4 "2010-07-02T14:58:32Z")

</div>

Hi!

thanks for the help.

It turned out:

- -l option is useless [maybe --local is OK] without
- unset http\_proxy environment variable
- -i install dir is also necessary

eg.:  
gem install actionmailer-2.3.5.gem -l -i /usr/local/lib/ruby/gems/1.8

Regards,

Gabor

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 1, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/5 "2010-07-01T19:09:48Z")

</div>

On Thu, Jul 1, 2010 at 12:45 PM, Marnen Laibow-Koser  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > gem install rake  
> > gem install rails  
> > gem install …  
> > gem --help
> 
> Leonardo, that obviously won’t work since the OP said he has no public  
> Internet connection.  
> Sorry guys, I’ve must have been still asleep when I replied that email  
> this morning.

> > –
> 
> –  
> You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to removed\_email\_address@domain.invalid.  
> For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Leonardo M…  
There’s no place like ~

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 6, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/6 "2010-07-06T20:59:32Z")

</div>

> [http://blog.perplexedlabs.com/2009/01/13/installing-ruby-enterprise-edition-with-phusion-passenger/](http://blog.perplexedlabs.com/2009/01/13/installing-ruby-enterprise-edition-with-phusion-passenger/)

Wow, cool link! Thanks!

Gabor

---

<div class="post-metadata">

**Author:** ![freddy1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Post date:** [July 3, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939/7 "2010-07-03T12:13:02Z")

</div>

On 01/Jul/2010 11:10 Gabor A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote …

> ## Gabor
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> –  
> You received this message because you are subscribed to the Google  
> Groups “Ruby  
> on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid.  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

I hope you installed ruby on a different path (e.g. /opt/ruby).  
Installing newer ruby on rhel/centos is quite trivial tho, check this  
out for example:  
[http://blog.perplexedlabs.com/2009/01/13/installing-ruby-enterprise-edition-with-phusion-passenger/](http://blog.perplexedlabs.com/2009/01/13/installing-ruby-enterprise-edition-with-phusion-passenger/)

–  
Nux!  
www.nux.ro
