I am working on a Rails 3 project. At the client site, the network is very restricted. The network domain will not allow access to rubygems, github, etc. I have to install most thing manually. So that is how I installed the different Ruby versions. I have RVM installed now but it can not find the Rubies that are installed. RVM tells me to install the Ruby I am trying to set. Is there a way to still use RVM even though I can not use the default Ruby install as “rvm install ruby-xxx”?
Share
It is possible to get RVM to manage multiple Ruby versions but you have to give it some help, and it can’t do it with Rubies it didn’t compile and install.
Any Rubies RVM didn’t install are considered “system”, even though there might be multiple ones. Using
rvm systemtells RVM to remove its path information from the front of your PATH environment variable, letting the shell do its normal search, which hopefully lands on arubybinary. If you have multiple Rubies outside of RVM’s control, you’ll have to manually adjust your path. That’s the cost of doing it outside of RVM.If you want to have RVM install and manage Rubies you can manually copy the Ruby distribution source tarball files into
~/.rvm/archives. Here’s the file’s you’ll need for the current 1.8.7 and 1.9.2:Once they’re installed in that folder you should be able to tell RVM to
rvm install 1.9.2-p136orrvm install 1.8.7-p330and it will extract the contents to~/.rvm/srcand begin the configure, compile, install steps. If it whines at all it will probably want you to unarchive those files into~/.rvm/srcfirst. Then try the install commands again. Basically we’re playing with RVM’s mind at this point, so if you run into problems you should probably ask the developer for help. You can get his email viarvm -v.That’s what I have to do with one of my hosts and it works.