win10 WSL 建了个 ubuntu 的子系统,vscode 有个插件可以通过 WSL 访问 win10,相当不错的功能!!! 可是配置子系统环境时,死活 rvm 连不上啊,无法安装,哪位给出点主意,要不假期又浪费了。。
科学上网
以前还有工具 现在 不知道怎么上了。反正都是版本管理,只能换个别的了
LZ 可以试试换 rbenv 离线安装试试。
proxy
查 IP,配置 host
试试这个
https://ruby-china.org/topics/40407
我将 github 的 rvm 安装包移到七牛云了,不翻墙的情况下,可以试试这个
你得用 https://github.com/rvm/ubuntu_rvm, 最好把 ubuntu 的源换成国内的
如果 ubuntu 足够新,例如 20.04,那么直接用源里面的就行了。
被污染而已,本地配置 host 指向它真实的 ip,你其实完全可以把这个问题复制到百度,就能看到方法
试一下这个吧,https://github.com/asdf-vm/asdf
谢啦,社区热心人真好,用离线方式装了
curl -sSL https://github.com/rvm/rvm/tarball/stable -o rvm-stable.tar.gz mkdir rvm && cd rvm tar --strip-components=1 -xzf ../rvm-stable.tar.gz ./install --auto-dotfiles source ~/.rvm/scripts/rvm
注:rvm 初始化,在.bash_profile 后追加一行代码即可:
[ -f $HOME/.profile ] && source $HOME/.profile