compiling PHP with latest Sqlite
Posted: Mon Aug 18, 2008 1:16 am
I can't get PHP to compile with the latest sqlite (3.6.1). It always compiles with v 3.4.2. This server runs Fedora 7, which comes with Sqlite 3.4.2 as a yum package preinstalled. I can't uninstall it because 60+ packages depend on it and I'm pretty sure removing it will break the system.
I have Sqlite installed in /usr/local/sqlite and I made a successful ./configure, make and make install
PHP ./configure has --with-pdo-sqlite=/usr/local/sqlite
I also tried these directories, which include libs or headers of v.3.6.1 ( I have even overwritten the sqlite3.h and sqlite3ext.h files of 3.4.2 with the ones from 3.6.1):
/usr/local/sqlite
/usr/local/lib
/usr/local/bin/sqlite3
/usr/include
/usr/local/include
Whatever I try, PHP always uses Fedora 7's Sqlite 3.4.2 (checking with phpinfo() )
Now I also have a debian server without any sqlite packages preinstalled by the operating system, and there I had no problem at all to compile PHP with Sqlite 3.6.1.
My questions is, what makes PHP use Fedora 7's Sqlite package instead of the one I specify in the configure command (--with-pdo-sqlite=/usr/local/sqlite) ... Is there an environment variable giving preference to the yum package???
Thanks in advance
I have Sqlite installed in /usr/local/sqlite and I made a successful ./configure, make and make install
PHP ./configure has --with-pdo-sqlite=/usr/local/sqlite
I also tried these directories, which include libs or headers of v.3.6.1 ( I have even overwritten the sqlite3.h and sqlite3ext.h files of 3.4.2 with the ones from 3.6.1):
/usr/local/sqlite
/usr/local/lib
/usr/local/bin/sqlite3
/usr/include
/usr/local/include
Whatever I try, PHP always uses Fedora 7's Sqlite 3.4.2 (checking with phpinfo() )
Now I also have a debian server without any sqlite packages preinstalled by the operating system, and there I had no problem at all to compile PHP with Sqlite 3.6.1.
My questions is, what makes PHP use Fedora 7's Sqlite package instead of the one I specify in the configure command (--with-pdo-sqlite=/usr/local/sqlite) ... Is there an environment variable giving preference to the yum package???
Thanks in advance