Re: Unable to compile php 5.1 / 5.1RC ok

From: Date: Sun, 27 Nov 2005 20:46:50 +0000
Subject: Re: Unable to compile php 5.1 / 5.1RC ok
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-226522@lists.php.net to get a copy of this message
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

« previous php.general (#226522) next »