我的RVM系统范围的安装脚本都以Linode StackScripts和Chef-solo Recipes的形式被破坏了.
根据RVM网站上的说明,我的脚本以root身份执行以下命令,以在系统范围内安装RVM:
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
Run Code Online (Sandbox Code Playgroud)
上面的关键部分是网址http://bit.ly/rvm-install-system-wide.截至今天,2011年3月24日,此网址已不再使用.它导致GitHub 404错误.
RVM网站上的以下URL用于包含系统范围安装的说明:http://rvm.beginrescueend.com/deployment/system-wide/.但是,该URL现在重定向到RVM主页.
为了使RVM系统范围的安装脚本再次运行,有哪些新指令?
刚从#rvm的首席开发人员wayneeseguin收到以下答案:
[12:53] "作者"它合并到AIN安装[12:53]所以,你应该做的bash <<(卷曲http://rvm.beginrescueend.com/releases/rvm-install-head)#HTTP ://rvm.beginrescueend.com/rvm/install/
[12:53]代码刚刚更改,文档没有赶上[12:53]的root和用户安装
确实,只需通过root身份安装,RVM 1.5.1就能成功安装到/ usr/local/bin中.但是,出于某种原因,现在使用的所有现有Chef和Puppet配置脚本似乎都无法在此版本中出现.这很不幸,因为Wayne E. Seguin明确表示将不支持低于1.5.0版的RVM.
也就是说,我们今天需要我们的系统.为了继续使用现有脚本支持的RVM 1.3.0,您需要替换以下行:
bash < <( curl -L http://bit.ly/rvm-install-system-wide )
Run Code Online (Sandbox Code Playgroud)
使用以下行(由phlipper找到):
bash -c "bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'"
Run Code Online (Sandbox Code Playgroud)
这是我在重大更改之前安装最后一个工作版本的修复程序:
bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'
Run Code Online (Sandbox Code Playgroud)
这对我现在的生产有用.祝好运!
UPDATE
此外,如果您使用https://github.com/fnichol/chef-rvm中的厨师食谱或类似的东西,您可以使用以下选项:
:rvm => {
:system_installer_url => "https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide",
:version => "1.3.0"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6234 次 |
| 最近记录: |