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

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/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to

rubyonrails-talk+unsubscribe@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/

gem install rake
gem install rails
gem install ...
gem --help

Leonardo Mateo 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 Mateo.
There's no place like ~

Best,

Leonardo Mateo 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.

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

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

Wow, cool link! Thanks!

Gabor