Ruby on Rails - RHEL

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

On Thu, Jul 1, 2010 at 5:10 AM, Gabor A. [email protected]
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 ~

Leonardo M. wrote:

On Thu, Jul 1, 2010 at 5:10 AM, Gabor A. [email protected]
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 from the server, so much the better.


Leonardo M…
There’s no place like ~

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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

On Thu, Jul 1, 2010 at 12:45 PM, Marnen Laibow-Koser
[email protected] 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 [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Leonardo M…
There’s no place like ~

http://blog.perplexedlabs.com/2009/01/13/installing-ruby-enterprise-edition-with-phusion-passenger/

Wow, cool link! Thanks!

Gabor

On 01/Jul/2010 11:10 Gabor A. [email protected] wrote …

Gabor

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 [email protected].
To unsubscribe from this group, send email to
[email protected].
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