Ruby on Rails - RHEL

18 views
Skip to first unread message

Gabor Antal

unread,
Jul 1, 2010, 4:10:04 AM7/1/10
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Leonardo Mateo

unread,
Jul 1, 2010, 8:36:30 AM7/1/10
to rubyonra...@googlegroups.com
gem install rake
gem install rails
gem install ...
gem --help

--
Leonardo Mateo.
There's no place like ~

Marnen Laibow-Koser

unread,
Jul 1, 2010, 11:45:39 AM7/1/10
to rubyonra...@googlegroups.com

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 from the server, so much the better.


>
> --
> Leonardo Mateo.
> There's no place like ~

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

Leonardo Mateo

unread,
Jul 1, 2010, 1:08:33 PM7/1/10
to rubyonra...@googlegroups.com
On Thu, Jul 1, 2010 at 12:45 PM, Marnen Laibow-Koser
<li...@ruby-forum.com> wrote:
> Leonardo Mateo wrote:
>> On Thu, Jul 1, 2010 at 5:10 AM, Gabor Antal <li...@ruby-forum.com>
>> 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.
Sorry guys, I've must have been still asleep when I replied that email
this morning.

>
> 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 from the server, so much the better.
>>
>> --
>> Leonardo Mateo.
>> There's no place like ~
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> mar...@marnen.org
> --
> Posted via 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Gabor Antal

unread,
Jul 2, 2010, 8:58:32 AM7/2/10
to rubyonra...@googlegroups.com
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

n...@li.nux.ro

unread,
Jul 1, 2010, 5:41:55 AM7/1/10
to rubyonra...@googlegroups.com
On 01/Jul/2010 11:10 Gabor Antal <li...@ruby-forum.com> wrote ..
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
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/

--
Nux!
www.nux.ro

Gabor Antal

unread,
Jul 6, 2010, 2:59:32 PM7/6/10
to rubyonra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages