Reply to Re: [PHP] Unable to compile php 5.1 / 5.1RC ok

Your name:

Reply:


Posted by Curt Zirzow on 11/27/05 22:46

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация