RVM安装ruby系统应用免除编译安装的痛苦, 方便快捷。
su
password(...密码)
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ ln -sf /usr/local/rvm /root/.rvm
$ source .bash_profile
(查看是否安装成功, 命令如下, 看到 rvm is a function 即成功)
$ type rvm | head -1
(check for something to could be installed)
$ rvm list known
(install ruby version of 1.9.2)
$ rvm install 1.9.2
$ rvm use 1.9.2
(ensure installation successful)
$ ruby -v
$ which ruby
(exit the root)
exit
$ sudo rvm use 1.9.2 --default
(more details)
https://rvm.beginrescueend.com/rvm/install/
su
password(...密码)
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ ln -sf /usr/local/rvm /root/.rvm
$ source .bash_profile
(查看是否安装成功, 命令如下, 看到 rvm is a function 即成功)
$ type rvm | head -1
(check for something to could be installed)
$ rvm list known
(install ruby version of 1.9.2)
$ rvm install 1.9.2
$ rvm use 1.9.2
(ensure installation successful)
$ ruby -v
$ which ruby
(exit the root)
exit
$ sudo rvm use 1.9.2 --default
(more details)
https://rvm.beginrescueend.com/rvm/install/
本文介绍如何使用RVM快速安装Ruby环境,避免繁琐的编译步骤。通过一系列命令行操作,不仅可完成RVM的安装配置,还能指定安装特定版本的Ruby,并设置默认使用的版本。
3207

被折叠的 条评论
为什么被折叠?



