The server didn't have the needed compiler, had to install gcc first:
yum install gccI had to install/update the php-devel package to enable extension building:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm yum --enablerepo=webtatic update php-develI needed a different PHP version ("php --version" will tell you which):
wget http://de.php.net/get/php-5.3.6.tar.gz/from/this/mirror tar zxvf php-5.3.6.tar.gzI wanted SQLite version 3, not 2:
cd php-5.3.6/ext/sqlite3The rest was basically identical then:
phpize ./configure make make installI created the extension file for SQLite3 (
/etc/php.d/sqlite3.ini
), added a pointer to the sqlite3.so
, and now (after restarting Apache) SQLite 3 is available via PHP's PDO interface. Stack Overflow++ :)SeeAlso: CentOS locale issues.