Fatal error: Call to undefined function pg_escape_string()
Rui Campos 04 Jun 2009 17:25
Hi,
I'm trying to install wikidot in a Centos 5 server.
I have installed PHP 5.2, Postgresql 8.3, got the wikidot clone from github.
Whenever I try to run the 'make prepare_db' as postgres user I got the following error:
Fatal error: Call to undefined function pg_escape_string()
If I try to execute 'make' I get:
Call to undefined function pg_connect()
I have the following libraries installed:
# yum list | grep php
php.i386 5.2.6-jason.1 installed
php-cli.i386 5.2.6-jason.1 installed
php-common.i386 5.2.6-jason.1 installed
php-pdo.i386 5.2.6-jason.1 installed
php-pgsql.i386 5.2.6-jason.1 installed
php-bcmath.i386 5.2.6-jason.1 utterramblings
php-dba.i386 5.2.6-jason.1 utterramblings
php-dbase.i386 5.2.4-jason.1 utterramblings
php-devel.i386 5.2.6-jason.1 utterramblings
php-embedded.i386 5.2.6-jason.1 utterramblings
php-gd.i386 5.2.6-jason.1 utterramblings
php-imap.i386 5.2.6-jason.1 utterramblings
php-ldap.i386 5.2.6-jason.1 utterramblings
php-mbstring.i386 5.2.6-jason.1 utterramblings
php-mcrypt.i386 5.2.6-jason.1 utterramblings
php-mhash.i386 5.2.6-jason.1 utterramblings
php-mssql.i386 5.2.6-jason.1 utterramblings
php-mysql.i386 5.2.6-jason.1 utterramblings
php-ncurses.i386 5.2.6-jason.1 utterramblings
php-odbc.i386 5.2.6-jason.1 utterramblings
php-pear.noarch 1:1.6.2-1.jason.1 utterramblings
php-snmp.i386 5.2.6-jason.1 utterramblings
php-soap.i386 5.2.6-jason.1 utterramblings
php-tidy.i386 5.2.6-jason.1 utterramblings
php-xcache.i386 5.2.6_1.2.2-jason.3 utterramblings
php-xml.i386 5.2.6-jason.1 utterramblings
php-xmlrpc.i386 5.2.6-jason.1 utterramblings
phpPgAdmin.noarch 4.2.2-1.rhel5 pgdg83
uuid-php.i386 1.5.1-4.rhel5 pgdg83
# yum list | grep postgres
compat-postgresql-libs.i686 4-1PGDG.rhel5 installed
postgresql.i386 8.3.7-1PGDG.rhel5 installed
postgresql-libs.i386 8.3.7-1PGDG.rhel5 installed
postgresql-server.i386 8.3.7-1PGDG.rhel5 installed
check_postgres.noarch 2.8.1-1.rhel5 pgdg83
compat-postgresql-libs-debuginfo.i686 4-1PGDG.rhel5 pgdg83
postgresql-contrib.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-debuginfo.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-devel.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-docs.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-jdbc.i686 8.3.603-1PGDG.rhel5 pgdg83
postgresql-jdbc.i386 8.3.604-1PGDG.rhel5 pgdg83
postgresql-jdbc-debuginfo.i686 8.3.603-1PGDG.rhel5 pgdg83
postgresql-jdbc-debuginfo.i386 8.3.604-1PGDG.rhel5 pgdg83
postgresql-odbc.i686 08.03.0100-1PGDG.rhel5 pgdg83
postgresql-odbc.i386 08.03.0400-1PGDG.rhel5 pgdg83
postgresql-odbc-debuginfo.i386 08.03.0400-1PGDG.rhel5 pgdg83
postgresql-odbc-debuginfo.i686 08.03.0100-1PGDG.rhel5 pgdg83
postgresql-plperl.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-plpython.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-pltcl.i386 8.3.7-1PGDG.rhel5 pgdg83
postgresql-python.i686 3.8.1-7PGDG.rhel5 pgdg83
postgresql-python-debuginfo.i686 3.8.1-7PGDG.rhel5 pgdg83
postgresql-tcl.i686 1.6.2-1PGDG.rhel5 pgdg83
postgresql-tcl-debuginfo.i686 1.6.2-1PGDG.rhel5 pgdg83
postgresql-test.i386 8.3.7-1PGDG.rhel5 pgdg83
Is there anything else I need to install to be able to execute the Makefile on wikidot?
Thanks,
Rui