wayneeseguin/rvm — pull request #2481 by mpapis (2013-12-30 06:46:04+00:00)
Title: RVM offline installation: rvm trying to connect to rubygems.org  to get https://rubygems.org/specs.4.8.gz

Steps:

* `sudo ./install --auto-dotfiles --path /usr/local/rvm`
* copy all files needed for Ruby+Gems installation to `/usr/local/rvm`
* add the user to the RVM group: `sudo usermod -a G rvm theUser`
* log out, log in
* `rvm install ruby-2.1.0 --rubygems 2.1.11`

Result:

```
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-2.1.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.1.0, this may take a while depending on your cpu(s)...
ruby-2.1.0 - #downloading ruby-2.1.0, this may take a while depending on your connection...
ruby-2.1.0 - #extracting ruby-2.1.0 to /usr/local/rvm/src/ruby-2.1.0.
ruby-2.1.0 - #applying patch /usr/local/rvm/patches/ruby/2.1.0/changeset_r44327.diff.
ruby-2.1.0 - #configuring....................................................
ruby-2.1.0 - #post-configuration.
ruby-2.1.0 - #compiling..................................................................................
ruby-2.1.0 - #installing.................................
ruby-2.1.0 - #making binaries executable.
ruby-2.1.0 - #downloading rubygems-2.1.11
ruby-2.1.0 - #extracting rubygems-2.1.11.
ruby-2.1.0 - #removing old rubygems.
ruby-2.1.0 - #installing rubygems-2.1.11.......................
ruby-2.1.0 - #gemset created /usr/local/rvm/gems/ruby-2.1.0@global
ruby-2.1.0 - #importing gemset /usr/local/rvm/gemsets/global.gems.....
ruby-2.1.0 - #generating global wrappers.
[2013-12-29 05:14:29] run_gem_wrappers_regenerate
run_gem_wrappers_regenerate ()
{
typeset gem_wrappers_minimal_version;
__rvm_db "gem_wrappers_minimal_version" "gem_wrappers_minimal_version";
ensure_gem_installed gem-wrappers -v ">=$gem_wrappers_minimal_version" && gem wrappers regenerate || return $?
}
current path: /usr/local/rvm/src/ruby-2.1.0
GEM_HOME=/usr/local/rvm/gems/ruby-2.1.0@global
PATH=/usr/local/rvm/gems/ruby-2.1.0@global/bin:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/local/rvm/bin:/opt/teradata/client/14.10/tbuild/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/export/home/oracle/app/oracle/product/12.1.0/client_1/bin:/home/dw_infra/bin
GEM_PATH=/usr/local/rvm/gems/ruby-2.1.0@global
command(1): run_gem_wrappers_regenerate
ERROR: Could not find a valid gem 'gem-wrappers' (>= 1.2.1), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) for "rubygems.org" port 443 (https://rubygems.org/specs.4.8.gz)
ruby-2.1.0 - #gemset created /usr/local/rvm/gems/ruby-2.1.0
ruby-2.1.0 - #generating default wrappers.
[2013-12-29 05:14:29] run_gem_wrappers_regenerate
run_gem_wrappers_regenerate ()
{
typeset gem_wrappers_minimal_version;
__rvm_db "gem_wrappers_minimal_version" "gem_wrappers_minimal_version";
ensure_gem_installed gem-wrappers -v ">=$gem_wrappers_minimal_version" && gem wrappers regenerate || return $?
}
current path: /usr/local/rvm/src/ruby-2.1.0
GEM_HOME=/usr/local/rvm/gems/ruby-2.1.0
PATH=/usr/local/rvm/gems/ruby-2.1.0/bin:/usr/local/rvm/gems/ruby-2.1.0@global/bin:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/local/rvm/bin:/opt/teradata/client/14.10/tbuild/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/export/home/oracle/app/oracle/product/12.1.0/client_1/bin:/home/dw_infra/bin
GEM_PATH=/usr/local/rvm/gems/ruby-2.1.0:/usr/local/rvm/gems/ruby-2.1.0@global
command(1): run_gem_wrappers_regenerate
ERROR: Could not find a valid gem 'gem-wrappers' (>= 1.2.1), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) for "rubygems.org" port 443 (https://rubygems.org/specs.4.8.gz)
ruby-2.1.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.1.0 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri

```

----
The Ruby 2.1.0 is now installed but crippled, new shell login shows this:

```
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.0/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.1.0'.
```

Discussed this via IRC, RVM team member advised to file this ticket.