1. libxml 的安装
下载libxml的源码包, http://www.xmlsoft.org/downloads.html, 由于源码包里包含的是configure.in和makefile.am ,所以需要一下工具
安装libtool , 命令如下 sudo apt-get install libtool
安装autoconf, 命令如下: sudo apt-get install autoconf
执行如下命令
libtoolize
aclocal -I /usr/share/aclocal-1.11/
autoheader
autoconf
automake --add-missing
./configure --prefix=/usr/local/libxml
make
make install
至此libxml 安装完成.
2. php 的安装
下载php 的源码包,http://php.net/downloads.php
#tar zvxf php-5.3.8.tar.gz #cd php-5.3.8 #./configure \ --prefix=/usr/local/php \ --with-mysql=/usr \ (我是用apt-get的方式安装的,所以目录为/usr) --with-apxs=/usr/local/apache2/bin/apxs2 \ --with-libxml-dir=/usr/ local/libxml2 #make #make install
3. apache 的配置
参考文章: http://www.cnblogs.com/fly1988happy/archive/2011/12/14/2288096.html