Yes the link was helpful and now i have sqlite working... here is a summary of that helpful post
I eventually figured out how to get this working
Fedora ships php5 compiled with "--without sqlite". I believe the php-pecl-sqlite module is not compiled for php5, there is a bug report filed and it looks like the fedora folks are only supporting php-pecl-pdo-sqlite. However i have a significant amount of code that uses PEAR DB.
Start with installing php-pecl-sqlite
$ pear download sqlite
OR
$ wget -q [url]http://pecl.php.net/get/SQLite-1.0.3.tgz[/url]
then unpacked and began to compile it
$ tar zxvf SQLite-1.0.3.tgz
$ cd SQLite-1.0.3
$ phpize
$ ./configure
$ make
make failed here with some offset error
edit sqlite.c, comment out the following line:
/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */
And then change these lines
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, arg3_force_ref)
PHP_FE(sqlite_popen, arg3_force_ref)
to:
function_entry sqlite_functions[] = {
PHP_FE(sqlite_open, third_arg_force_ref)
PHP_FE(sqlite_popen, third_arg_force_ref)
$ make
$ make install
make install plopped the .so into the correct directory without need of this
$ cp modules/sqlite.so /usr/lib/php/modules
$ /sbin/service/httpd restart