linux(CentOS 5.4 x86_64) 安装 RVM 前期准备 (需要,必要的安装包)

来源:互联网 发布:eclipse导入java文件 编辑:程序博客网 时间:2024/05/22 05:08

问题描述:

执行

curl -L get.rvm.io | bash -s stable

安装RVM时出现各种问题


解决问题方法:

1.更新yum源

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm   
2.安装git

yum install --enablerepo=webtatic git-all 

3.增加yum源
rpm -Uvh ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/i386/epel-release-5-4.noarch.rpm    

4.安装其他必要包
yum install gcc* make automake zlib-devel libjpeg-devel giflib-devel freetype-devel bison openssl-devel  readline-devel 


5.安装 RVM
user$ curl -L get.rvm.io | bash -s stable
------------------------------------------------命令执行效果----------------------------------------------------
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100  9249  100  9249    0     0    826      0  0:00:11  0:00:11 --:--:--  8332
Downloading RVM from wayneeseguin branch stable
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 1045k  100 1045k    0     0  12343      0  0:01:26  0:01:26 --:--:-- 13225


Installing RVM to /home/ly/.rvm/
   Adding rvm PATH line to /home/ly/.bashrc /home/ly/.zshrc.
   Adding rvm loading line to /home/ly/.bash_profile /home/ly/.zlogin.


# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm


# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'


Installation of RVM in /home/ly/.rvm/ is almost complete:


 * To start using RVM you need to run `source /home/ly/.rvm/scripts/rvm`
   in all your open shell windows, in rare cases you need to reopen all shell windows.


# ly,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne




rvm 1.14.1 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
------------------------------------------------命令执行效果----------------------------------------------------

原创粉丝点击