標籤:style blog http color os io strong ar
作業系統:centos 6.5
準備工作:
安裝git
1. 安裝git前準備(安裝需依賴的包): yum install curl -y yum install curl-devel -y yum install zlib-devel -y yum install openssl -y yum install perl -y yum install cpio -y yum install expat-devl -y yum install gettext-devl -y yum install perl-devel.i686 -y yum install -y libpcap.x86_64 yum install -y libpcap-devel.x86_64 yum install -y perl-devel.x86_642. 編譯安裝 wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz cd git-***** autoconfig ./configure make && make install3. 測試 git version
Centos 準備安裝刪除已安裝包
yum erase ffmpeg x264 x264-devel
Centos 安裝各種依賴包
yum install gcc gcc-c++ make nasm pkgconfig wget curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel libtool mhash.x86_64 perl-Digest-SHA1.x86_64 pcre.i386 pcre.x86_64 pcre-devel.i386 pcre-devel.x86_64 -y
wget http://www.nasm.us/pub/nasm/releasebuilds/2.11.05/nasm-2.11.05.tar.bz2tar xvf nasm-2.11.05.tar.bz2cd nasm-2.11.05配置安裝目錄為/usr/bin:./configure --prefix=/usr編譯並安裝:make && make install