2010-11-11 57 views
2

如何在無法訪問Internet的計算機上安裝Ruby VM(JRuby,Ruby MRI等)?使用RVM安裝位於本地系統上的Ruby

我想將tar.gz文件放在RVM能夠看到的地方(或者在它熄滅之前檢查並嘗試檢索包本身)。有任何想法嗎?

回答

2

This blog post解釋說您可以將源檔案放在您的$HOME/.rvm/archives目錄中。

cp ruby-enterprise-1.8.7-2010.02.tar.gz /home/minhajuddin/.rvm/archives 
rvm install ree-1.8.7 

或者the docs說,你可以在命令行中指定的檔案目錄:

--archives - directory for downladed files (~/.rvm/archives/)

+0

當我嘗試的第一個方法,RVM就歡快出來該網站試圖下載所需的Ruby ... 當我嘗試第二種方法: rvm install ruby​​-1.9.2 --archives「〜/ .rvm/archives /」 無法識別的命令行參數:'〜/ .rvm/archives /'(請參閱:'rvm usage') – Seth 2010-11-11 18:04:18