一、安装一些下载要用到的包! 1、安装OpenSSL tar zxvf openssl-0.9.8e.tar.gz cd openssl-0.9.8e ./config --prefix=/usr/local/openssl shared make make install 修改(此步骤非常重要,至少对于现有的软件版本) vi /etc/ld.so.conf 添加一行/usr/local/openssl/lib/ /sbin/ldconfig
2、安装Curl库 # tar -zxf curl-7.15.0.tar.gz 进入解压后的目录 # ./configure --prefix=/usr/local/curl # make; make install
3、安装expat cd /usr/local/src tar -zxvf expat-2.0.0.tar.gz cd expat-2.0.0 ./configure --prefix=/usr/local/expat make;make install
9、安装gd # tar zxvf gd-2.0.33.tar.gz # cd gd-2.0.33 # ./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg --with-freetype=/usr/local/freetype --with-png --with-zlib //编译过程中会看到如下信息 ** Configuration summary for gd 2.0.33: Support for PNG library: yes Support for JPEG library: yes Support for Freetype 2.x library: yes Support for Fontconfig library: no Support for Xpm library: no Support for pthreads: yes //可以看到png 、 jpeg 、 freetype都已经安装上了 # make # make install
10、安装 libxslt # tar -zxf libxslt-1.1.15.tar.gz # cd libxslt-1.1.15 # ./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2 # make; make install