On Sat, Nov 26, 2005 at 11:55:25AM -0400, robert mena wrote:
> Hi,
> 
> I am trying to compile php 5.1 but it fails with pdo error messages
> 
> './configure' '--with-apxs2' '--with-mysql=/usr' '--enable-soap'
> '--with-xmlrpc' --with-zlib --enable-pdo=shared  --with-pdo-mysql=/usr
> 
> ext/sqlite/.libs/sqlite.o(.text+0x1365): In function `zm_startup_sqlite':
> /home/build/php-5.1.0/ext/sqlite/sqlite.c:1100: undefined reference to
> `php_pdo_register_driver'
> ...
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
> 
> I do have sqlite/sqlite-devel installed.

If you compile pdo as a shared module, it is required that you also
compile all the pdo drivers as shared and also the standard sqlite
extension:
  --with-pdo-mysql=shared,/usr 
  --with-pdo-sqlite=shared and 
  --with-sqlite=shared

And you'll have to add the entries in your php.ini:

  extension_dir=/path/to/php-modules/
  extension=pdo.so
  extension=pdo_sqlite.so
  extension=sqlite.so

Or

Just compile pdo statically into php, you would just need:

  --with-pdo-mysql=/usr


Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to