rubygems version problem with offline installation

323 views
Skip to first unread message

Martin Waite

unread,
May 8, 2013, 8:45:55 AM5/8/13
to rubyversi...@googlegroups.com
Hi,

I am trying to install rvm 1.19.6 onto a centos 5.5 box with no internet access.

I installed rvm and that seemed to work fine:

sudo ./install --autodotfiles

I added myself to the rvm group, logged out, logged back in again.

I then copied my ruby and rubygems downloads into /usr/local/rvm/archives/

cp ruby-2.0.0-p0.tar.bz2 rubygems-2.0.3.tgz /usr/local/rvm/archives/

I then ran the install command:

sudo rvm install 2.0.0-p0 --disable-binary

This appears to build and install ruby OK, but then it trips up on installing rubygems:

There was an error while trying to resolve rubygems version for 'latest'.

I re-ran the install with trace enabled, and the problem seems to be that it wants to obtain the latest version details through curl, but that doesn't work here.

How do I make it use the version of rubygems that I put in the archives folder ?

-- Martin

mpapis

unread,
May 8, 2013, 8:09:37 PM5/8/13
to rubyversi...@googlegroups.com
you can give flag "--rubygems 2.0.3" - and here are more complete instructions: https://rvm.io/rvm/offline

Martin Waite

unread,
May 9, 2013, 6:11:38 AM5/9/13
to rubyversi...@googlegroups.com
That worked perfectly.   Many thanks.
Reply all
Reply to author
Forward
0 new messages