CentOS上部署安装

来源:http://www.webtatic.com/packages/git17/,http://www.betaquest.com/2011/07/how-to-install-rvm-ruby-version-manager-and-ruby-1-8-7-and-1-9-2-ree-on-centos-5-6-64bit/

 

在centOS上的yum里没有找到git的安装包,按下面方法安装上了git

 

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

yum install --enablerepo=webtatic git-all

 

应该是package源没有更新到系统中,求解

 

安装rvm,先安装gcc等包,在root下安装

 

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum install gcc* make automake zlib-devel libjpeg-devel giflib-devel freetype-devel bison openssl-devel  readline-devel

 

 

安装最新的automake autoconfig等包

wget ftp://mirrors.kernel.org/gnu/automake/automake-1.11.1.tar.gz 
ftp://mirrors.kernel.org/gnu/autoconf/autoconf-2.63.tar.gz 
ftp://mirrors.kernel.org/gnu/autoconf/autoconf-2.68.tar.gz

 事先查找最新的包版本

 

安装

tar xzvf automake-1.11.1.tar.gz
tar xzfv autoconf-2.63.tar.gz
tar xzfv autoconf-2.68.tar.gz

Configure and compile. Use the –prefix=/usr in order to overwrite your current versions:

cd autoconf-2.63
./configure --prefix=/usr
make
make install

cd automake-1.11.1
./configure --prefix=/usr
make
make install

cd autoconf-2.68
./configure --prefix=/usr
make
make install

 

安装rvm

bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

 这是官方的

还有

 bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
 

你可能感兴趣的:(centos)