For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2004 > Re: [PHP-INSTALL] php5 --with-pgsql









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] php5 --with-pgsql
Chris Hewitt

2004-08-18, 3:56 pm

On Wed, 2004-08-18 at 15:47, Jesse Burkhardt wrote:
> Have any of you building php5 had trouble with compiling in PostgreSQL
> support? I fail during the make stage of the build with after building
> PostgreSQL 7.4.3:
>
> /usr/local/src/php-5.0.1/ext/pgsql/pgsql.c: In function
> `php_pgsql_get_link_info':
> /usr/local/src/php-5.0.1/ext/pgsql/pgsql.c:862: error: `PG_VERSION'
> undeclared (first use in this fu
> nction)
> /usr/local/src/php-5.0.1/ext/pgsql/pgsql.c:862: error: (Each undeclared
> identifier is reported only
> once
> /usr/local/src/php-5.0.1/ext/pgsql/pgsql.c:862: error: for each function
> it appears in.)
> make: *** [ext/pgsql/pgsql.lo] Error 1
>
>
> This is my config:
>
> ./configure --host=i386-redhat-linux --build=i386-redhat-linux
> --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
> --sharedstatedir=/usr/com --mandir=/usr/share/man
> --infodir=/usr/share/info --cache-file=../config.cache
> --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
> --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath
> --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl
> --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr
> --with-gd --enable-gd-native-ttf --without-gdbm --with-gettext
> --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr
> --with-openssl --with-png --with-regex=system --with-xml
> --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr
> --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr
> --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp
> --enable-magic-quotes --enable-safe-mode --enable-sockets
> --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid
> --enable-yp --enable-wddx --with-pear=/usr/share/pear
> --with-imap=/usr/local/imap-2004a --with-imap-ssl --with-kerberos
> --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared,/usr
> --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr
> --enable-memory-limit --enable-bcmath --enable-shmop --enable-calendar
> --enable-dbx --enable-dio --enable-mcal --enable-mbstring
> --enable-mbstr-enc-trans --enable-mbregex --with-apxs2=/usr/sbin/apxs
> --with-mhash --with-tidy --with-mcrypt --with-pcre=/usr
> --enable-simplexml --enable-soap --with-xsl --with-libxml-dir=/usr
>


Mine is just --with-pgsql=shared not --with-pgsql=shared,/usr but that
is on Fedora Core 2 and you have not told us what OS or version. I used
PHP 5.0.0 not 5.0.1 and you are the second person I've seen on this list
with compile problems with 5.0.1. Have you tried 5.0.0?

Hope this helps

Chris
Jesse Burkhardt

2004-08-18, 8:56 pm

Chris Hewitt wrote:
> On Wed, 2004-08-18 at 15:47, Jesse Burkhardt wrote:
>
>
>
> Mine is just --with-pgsql=shared not --with-pgsql=shared,/usr but that
> is on Fedora Core 2 and you have not told us what OS or version. I used
> PHP 5.0.0 not 5.0.1 and you are the second person I've seen on this list
> with compile problems with 5.0.1. Have you tried 5.0.0?
>
> Hope this helps
>
> Chris


Thanks Chris, I finally got it after rebuilding PostgreSQL and starting
with a clean config and make. I pretty much have the whole build close
to where I want it.

I'll report more on the overall build as I inspect the functionality of
my PHP5 installation.
Jesse Burkhardt

2004-08-18, 8:56 pm

Chris Hewitt wrote:
> On Wed, 2004-08-18 at 15:47, Jesse Burkhardt wrote:
>
>
>
> Mine is just --with-pgsql=shared not --with-pgsql=shared,/usr but that
> is on Fedora Core 2 and you have not told us what OS or version. I used
> PHP 5.0.0 not 5.0.1 and you are the second person I've seen on this list
> with compile problems with 5.0.1. Have you tried 5.0.0?
>
> Hope this helps
>
> Chris


Thanks Chris, I finally got it after rebuilding PostgreSQL and starting
with a clean config and make. I pretty much have the whole build close
to where I want it.

I'll report more on the overall build as I inspect the functionality of
my PHP5 installation.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com