gpt4 book ai didi

centos - 在 CentOS 6.5 上使用 Chef 安装 RVM

转载 作者:行者123 更新时间:2023-12-04 19:38:12 25 4
gpt4 key购买 nike

到目前为止,这就是我的 Recipe 中的内容

execute "rvm-install" do
command "curl -L get.rvm.io | bash -s stable"
action :run
end

execute "rvm-setup" do
command "source /etc/profile.d/rvm.sh"
action :run
end
rvm-install通过正常但运行时 rvm-setup我明白了:
Errno::ENOENT
-------------
No such file or directory - source /etc/profile.d/rvm.sh

该文件在那里,我可以从我的终端运行相同的命令。

为什么我会收到这个错误,我该如何解决这个错误?

最佳答案

我还想过尝试制作自己的 RVM Recipe ;但是在查看 official cookbook 之后我决定反对它。它足够灵活,既可以使用自定义配方,也可以使用节点属性进行驱动。

关于centos - 在 CentOS 6.5 上使用 Chef 安装 RVM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23717281/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com