Open songjiayang opened 8 years ago
Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc
gpg: Signature made Tue Mar 29 13:49:47 2016 UTC using RSA key ID BF04FF17
gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3
Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17
GPG verified '/usr/local/rvm/archives/rvm-1.27.0.tgz'
Creating group 'rvm'
Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:
* First you need to add all users that will be using rvm to 'rvm' group,
and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
* To start using RVM you need to run `source /etc/profile.d/rvm.sh`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# Administrator,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
详见 CI 运行结果:
首先你得确定你是 Ubuntu Server,这个项目只考虑那个。因为我设计的初衷是为了解决快速部署 Rails 应用,为了简化,我固定在 Ubuntu Server 上面,并且是目前绝大多数主机提供商都有的 14.04 版本。
其他的系统环境,尤其是 Mac OS X 无法保证
root 后面少了一个空格 if [ whoami = 'root']; then
https://github.com/huacnlee/init.d/blob/master/install_rvm#L5
if [ whoami = 'root']; then -> if [ whoami
= 'root' ]; then
whoami 应该先执行,需要 ` 符号
运行
install_rvm.sh
脚本到第5行的时候,提示缺少 缺少 /etc/profile.d/rvm.sh 文件, 但是此时 rvm 已经安装成功。 https://github.com/huacnlee/init.d/blob/master/install_rvm#L5 此行代码有何作用,是否可以去除(测试,去除后,可以正常安装)。