Thread: php to pgsql question
HI guys!<br /> I've been encounting a problem when I configured PHP to support Postgres.I think may be someone in herecan solve my problem.<br /> Postgres version is 8.1.4,and the install path is /usr/local/pgsql, PHP is 4.4.2.<br /> I use this parameter to configure PHP --with-pgsql=/usr/local/pgsql (I also try /usr/local, /usr/local/lib,etc.still do not work)<br /> when I run make,I get this error message:<br /> <span style="font-weight:bold; color: rgb(0, 0, 0); font-family: 宋体;">main/internal_functions_cli.lo(.data.rel+0x28): undefinedreference to `pgsql_module_entry' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1<br /><br/> </span><span style="color: rgb(0, 0, 0); font-family: 宋体;">Anyone know what the problem is? And how to solve it?<br/><br /> Thanks in advance!<br /></span><br />
On Tuesday 4. March 2008, li ethan wrote: >HI guys! > I've been encounting a problem when I configured PHP to support >Postgres.I think may be someone in here can solve my problem. > Postgres version is 8.1.4,and the install path is > /usr/local/pgsql, PHP is 4.4.2. > I use this parameter to configure PHP > --with-pgsql=/usr/local/pgsql (I also try /usr/local, > /usr/local/lib,etc. still do not work) when I run make,I get this > error message: > main/internal_functions_cli.lo(.data.rel+0x28): undefined > reference to `pgsql_module_entry' collect2: ld returned 1 exit > status make: *** [sapi/cli/php] Error 1 > > Anyone know what the problem is? And how to solve it? > > Thanks in advance! It's dependent on the libpq library. Do you have that installed? -- Leif Biberg Kristensen | Registered Linux User #338009 http://solumslekt.org/ | Cruising with Gentoo/KDE My Jazz Jukebox: http://www.last.fm/user/leifbk/