内容简介:最近在處理安裝 rvm 其實是透過 https://get.rvm.io 這裡的 script 執行如果直接在 curl 加上 proxy 參數的話還是不會動,深入解析 script 還會有一段要 import GPG key
最近在處理 rvm 的安裝問題,身處的環境是 internal 若要出到 internet 安裝必須要走 Proxy,可是 rvm 官方又沒有提供 proxy 的安裝選項 … 所以只好花點時間研究 …
安裝 rvm 其實是透過 https://get.rvm.io 這裡的 script 執行
curl -sSL https://get.rvm.io | bash -s stable
如果直接在 curl 加上 proxy 參數的話還是不會動,深入解析 script 還會有一段要 import GPG key
預設是用 gpg2 去抓 Key
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
或者 curl
curl -sSL https://rvm.io/mpapis.asc
可是兩者都沒有 proxy 參數,有兩種解決方法
- 用系統的 export HTTP_PROXY 和 HTTPS_PROXY 參數
- 或者直接抓 https://rvm.io/mpapis.asc 這把 Key 從 Local 匯入。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Concepts, Techniques, and Models of Computer Programming
Peter Van Roy、Seif Haridi / The MIT Press / 2004-2-20 / USD 78.00
This innovative text presents computer programming as a unified discipline in a way that is both practical and scientifically sound. The book focuses on techniques of lasting value and explains them p......一起来看看 《Concepts, Techniques, and Models of Computer Programming》 这本书的介绍吧!