compiling PHP with latest Sqlite

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
zash
Forum Newbie
Posts: 3
Joined: Thu Sep 27, 2007 11:51 pm

compiling PHP with latest Sqlite

Post by zash »

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
zash
Forum Newbie
Posts: 3
Joined: Thu Sep 27, 2007 11:51 pm

Re: compiling PHP with latest Sqlite

Post by zash »

To answer my own question:

I had to remove the sqlite-devel package from v3.4.2, after that PHP would compile with v 3.6.1
Post Reply