Re: pdo_informix
| From: | Johannes Schlüter | Date: | Tue, 05 Oct 2010 18:43:26 +0000 |
| Subject: | Re: pdo_informix | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7713@lists.php.net to get a copy of this message | ||
On Tue, 2010-10-05 at 15:31 +0200, jan declercq wrote:
> Hello,
>
> I hope i'm in the correct newsgroup.
Yes, you are.
> I installed a clean opensuse 11.3. (64bit)
>
> Executing the command "pecl install pdo" seems to fail.
> After some reading I found out it's because PDO is now a real part of
> php
> and shouldn't be installed through pecl anymore?
>
> Using yast, php5_pdo got installed correctly.
>
> The problem with this is that I'm also trying to install pdo_informix.
> This is not a 'real part' of php. And the only way to install it is
> through
> pecl:
>
> #pecl install pdo_informix
> this failes: "pear/PDO_INFORMIX requires package "pear/PDO"
>
> #pecl install -n pdo_informix
> Now the ./configure fails:
>
> checking for PDO includes... configure: error: Cannot find
> php_pdo_driver.h.
> ERROR: `/tmp/pear/download/PDO_INFORMIX-1.2.6/configure
> --with-pdo-informix=/opt/IBM/informix' failed
>
> because php5_pdo is installed I taught this was a rather strange
> error.
>
>
> Then I looked in /tmp/pear/download/PDO_INFORMIX-1.2.6/configure
>
> There i saw this lines:
>
> if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
> pdo_inc_path=$abs_srcdir/ext
> elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
> pdo_inc_path=$abs_srcdir/ext
> elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
> pdo_inc_path=$prefix/include/php/ext
> else
> as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5
> fi
>
>
> I added this lines so it would find the header file: (../php5/..
> instead of
> .../php/.. )
>
> elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then
> pdo_inc_path=$prefix/include/php5/ext
This looks like a bug in the config.m4 file in the package. Please
report a bug on the PECL site.
Just for a check: Can you do a
php-config --include-dir
On your machine and check the path to make sure the packages are
correct.
> now executing in the temp directory:
>
> #./configure
> #make
> #make install
>
>
> surprisingly this all went rather good
> ... if wasn't for this error in /var/log/messages when starting
> apache:
>
> Oct 5 14:53:40 lpjdcSuse01 kernel: [25669.863078]
> httpd2-prefork[1848]:
> segfault at 0 ip 00007fa919ab4bce sp 00007fffbb325570 error 4 in
> mod_php5.so[7fa9198de000+2d2000]
>
>
> When I removed extension=pdo_informix.so from php.ini it all worked
> fine
> again. (without the pdo_informix driver offcourse)
Can you try to run php from command line? (simple
php -m should be
enough, else run some test script ...) if that fails, too please provide
a backtrace, see http://bugs.php.net/bugs-generating-backtrace.php
johannes