本日志为双语版本,解决办法来自我的同事广峰,附上他的博客(GF blog:http://gfzj.us/
This article have Chinese and English version.

中文版解决办法(操作系统:ubuntu):
以下操作前提是已有lampp并且已经具备编译功能,没有安装编译器的请执行以下指令安装好编译器再继续:

sudo apt-get install build-essential
sudo apt-get install libxml2-dev

1.下载lampp开发包(http://www.Apachefriends.org/download.php?xampp-linux-devel-1.8.1.tar.gz)
2.上传xampp-linux-devel-1.8.1.tar.gz到opt目录
3.下载最新php(http://ar2.php.net/distributions/php-5.4.16.tar.gz)。
4.上传php-5.4.16.tar.gz到opt目录
5.进入opt目录

cd /opt

6.解压开发包和php-5.4.16.tar.gz

tar xf xampp-linux-devel-1.8.1.tar.gz -C /opt
tar xf php-5.4.16.tar.gz -C /opt

7.进入目录php-5.4.16。

cd php-5.4.16

8.进行编译

./configure --prefix=/opt/lampp/php-5.4.16 --enable-fpm --with-apxs2=/opt/lampp/bin/apxs --with-MySQL=MySQLnd --with-zlib=yes --with-zlib-dir=/opt/lampp --with-MySQL-sock=/opt/lampp/var/MySQL/MySQL.sock --enable-mbstring=all --with-curl=/opt/lampp --enable-mbregex --with-MySQLi=MySQLnd --with-iconv --with-pdo-MySQL=MySQLnd --with-pdo-SQLite --with-libxml-dir=/opt/lampp

9.执行如下指令编译并安装

make
sudo make install

10.重启xampp

/opt/lampp/lampp restart
Solution in English(Operating system:ubuntu):
The following premise is you must already have lampp(http://www.Apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz) in /opt
And already has compiled function, if the compiler is not installed, please perform the following instructions to install compiler:

sudo apt-get install build-essential
sudo apt-get install libxml2-dev

1.download Development package(http://www.Apachefriends.org/download.php?xampp-linux-devel-1.8.1.tar.gz)
2.upload xampp-linux-devel-1.8.1.tar.gz to opt
3.download php-5.4.16 Complete Source Code(http://ar2.php.net/distributions/php-5.4.16.tar.gz)。
4.upload php-5.4.16.tar.gz to opt
5.cd into opt directory

cd /opt

6.Decompress Development package and php-5.4.16.tar.gz

tar xf xampp-linux-devel-1.8.1.tar.gz -C /opt
tar xf php-5.4.16.tar.gz -C /opt

7.cd into php-5.4.16 directory

cd php-5.4.16

8.Write configuration files

./configure --prefix=/opt/lampp/php-5.4.16 --enable-fpm --with-apxs2=/opt/lampp/bin/apxs --with-MySQL=MySQLnd --with-zlib=yes --with-zlib-dir=/opt/lampp --with-MySQL-sock=/opt/lampp/var/MySQL/MySQL.sock --enable-mbstring=all --with-curl=/opt/lampp --enable-mbregex --with-MySQLi=MySQLnd --with-iconv --with-pdo-MySQL=MySQLnd --with-pdo-SQLite --with-libxml-dir=/opt/lampp

9.Compile and install

make
sudo make install

10.restart xampp

/opt/lampp/lampp restart

Related Posts: 关于XAMPP使用SQLite3-报错SQLite3 no such module: fts3的解决办法 :