RVM-有没有一种简单的脱机安装方式? [英] RVM - is there a way for simple offline install?

查看:90
本文介绍了RVM-有没有一种简单的脱机安装方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在脱机计算机上安装RVM-我可以手动传输所需的任何文件,但是无法建立Internet连接.尝试下载红宝石或其他依赖项(zlib等)的源文件时,未处于联机状态会导致RVM崩溃.

I would like to install RVM in an offline machine - I can manually transfer any file needed, but it'll be impossible to have an internet connection. Not being online causes RVM to collapse when trying to download source files for ruby or other dependencies (zlib, etc).

我正在寻找一种将RVM指向ruby源文件夹的位置的方法,例如类似于rvm install 1.8.7 --source=/path/to/ruby-1.8.7-p330/或任何其他依赖项.我已经搜索了rvm文档,但是要么错过了什么,要么就不在了.也欢迎有关如何完成此安装的任何其他建议.谢谢.

I'm looking for a way to point RVM to the location of ruby source folder, e.g. something like rvm install 1.8.7 --source=/path/to/ruby-1.8.7-p330/, or any other dependencies. I've scoured the rvm docs but either missed something or it's not there. Any other suggestions as to how to accomplish this installation are also welcome. thanks.

推荐答案

当rvm下载红宝石版本时,会将其保存到.rvm/archives.因此,您可以将ruby的.tar.bz2源拖放到该目录中,并且rvm将使用该源而不是尝试下载它:

When rvm downloads a version of ruby it saves it to .rvm/archives. So you can drop the .tar.bz2 source of ruby into that directory and rvm will use that instead of trying to download it:

cp ruby-1.8.7-p330.tar.bz2 ~/.rvm/archives/
rvm install ruby-1.8.7

这篇关于RVM-有没有一种简单的脱机安装方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆