AW: [Mapbender-users] Call to undefined function: pg_prepare()

Martin Weis martin.weis.newsadress at gmx.de
Fri Aug 11 18:12:55 EDT 2006


Hello!

Samson, Marko schrieb:
> You need php from 5.1 up.

I have a version greater than this (5.1.4), but for an unknown reason
the function was missing in the pgsql.so. I use debian sarge + backports
(php5-pgsql package), so the reason might be somewhere there.

I recompiled the module as follows (this is quick) and then it works:

* Get the sources of php-5.1.4
* unpack, go into folder

php-5.1.4$ ./configure --enable-shared --with-pgsql=shared
php-5.1.4$ make build-modules

this will create the module:
modules/pgsql.so

now I replaced the original module with the newly created one:
mv /usr/lib/php5/20051025/pgsql.so /usr/lib/php5/20051025/pgsql.so.orig
cp modules/pgsql.so /usr/lib/php5/20051025/pgsql.so

Thats all. I hope that helps.

-- 
Martin Weis
PGP-Key: http://datenroulette.de/pgp.php




More information about the Mapbender_users mailing list