RVM 系统范围的安装脚本 url 损坏——什么是替换? [英] RVM system-wide install script url broken -- what is replacement?
问题描述
我的 RVM 系统范围的安装脚本损坏了,包括 Linode StackScripts 和 Chef-solo Recipes.
My RVM system-wide installation scripts are broken, both in the form of Linode StackScripts and Chef-solo Recipes.
根据 RVM 网站上的说明,我的脚本以 root 身份执行以下命令以在系统范围内安装 RVM:
Per the instructions on the RVM website, my scripts execute the following commands as root to install RVM on a system-wide basis:
echo "Installing RVM system-wide" >> $logfile
bash < <( curl -L http://bit.ly/rvm-install-system-wide )
cat >> /etc/profile <<'EOF'
# Load RVM if it is installed,
# first try to load user install
# then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
. "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
. "/usr/local/rvm/scripts/rvm"
fi
EOF
source /etc/profile
上面的关键部分是 url http://bit.ly/rvm-install-system-wide.截至今天,2011 年 3 月 24 日,此网址不再可用.这会导致 GitHub 404 错误.
The key piece above is the url http://bit.ly/rvm-install-system-wide. As of today, 3/24/2011, this url no longer in service. It results in a GitHub 404 error.
RVM 网站上的以下 URL 曾经包含系统范围安装的说明:http://rvm.beginrescueend.com/deployment/system-wide/.但是,该 url 现在重定向到 RVM 主页.
The following url on the RVM website used to contain the instructions for the system-wide install: http://rvm.beginrescueend.com/deployment/system-wide/. However, that url now redirects to the RVM homepage.
为了让 RVM 系统范围的安装脚本再次工作,新的指令是什么?
In the interests of getting RVM system-wide installation scripts to work again, what are the new instructions?
推荐答案
这是我在重大更改之前安装最后一个工作版本的修复:
Here is my fix to install the last working version before he major change:
bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'
现在在生产中对我有用.祝你好运!
This is working for me now in production. Good luck!
更新
此外,如果您使用的是 https://github.com/fnichol/chef-rvm 或类似的东西,您可以使用以下选项:
Also, if you are using the chef cookbook from https://github.com/fnichol/chef-rvm or something similar, you can use the following options:
:rvm => {
:system_installer_url => "https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide",
:version => "1.3.0"
}
这篇关于RVM 系统范围的安装脚本 url 损坏——什么是替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!