From owner-freebsd-questions@FreeBSD.ORG Mon Oct 24 05:49:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1670106566B for ; Mon, 24 Oct 2011 05:49:09 +0000 (UTC) (envelope-from jontheil@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id AF5978FC14 for ; Mon, 24 Oct 2011 05:49:09 +0000 (UTC) Received: by qadz32 with SMTP id z32so2959032qad.13 for ; Sun, 23 Oct 2011 22:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=7b3YVqsmx0vS2WTQIfDj+UXcI2g+Nl8eFfs7+EWZV4E=; b=NakQU89pdzqVCSD6+reQ+2p91yxZAm4UPP6TXYXxbkvtP3bpFXDKLerm8OxZhVaBXF TrkrDQhAnFdJV7ge0sdPjK+9901spVMr4NgUFECz0ih6Bg/wAVkg1S6CguG9tYWOAb9M O9rsIOBvT3VHn/zB4GgY/5EP01MJJZQ6pgGXg= Received: by 10.229.213.3 with SMTP id gu3mr977393qcb.211.1319433656561; Sun, 23 Oct 2011 22:20:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.21.143 with HTTP; Sun, 23 Oct 2011 22:20:26 -0700 (PDT) From: Jon Theil Nielsen Date: Mon, 24 Oct 2011 07:20:26 +0200 Message-ID: To: User Questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problems with php5-pdo_pgsql, libpq etc. after upgrading postgresql X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 05:49:10 -0000 Hi list, Last week, I ran portupgrade as usual (after reading UPDATING). At lot of ports were upgraded, one of them the postgresql database. In the first place, I had to change the user name to start and access the database (I placed postgresql_class="postgres" in /etc/rc.conf). Secondly, I could not use davical (caldav calendar server) anymore. I cannot connect to the database and when I try to access the web interface, I get an error: Fatal error: PDO connection error 'pgsql:dbname=davical user=davical_app': could not find driver in /usr/local/share/awl/inc/AwlDBDialect.php on line 78.* *I checked my php configuration through phpinfo and I could confirm that there was no pdo driver for postgresql. There were only drivers for sqlite and mysql. When I try to rebuild databases/php5-pdo_pgsql with portupgrade -fRv databases/php5-pdo_pgsql, I got this error: ... checking for gawk... gawk checking for PostgreSQL support for PDO... yes, shared checking for pg_config... /usr/local/bin/pg_config checking for openssl dependencies... no checking for PQparameterStatus in -lpq... no Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required ===> Script "configure" failed unexpectedly. My configuration: uname -a: FreeBSD servername 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Oct 16 04:26:18 CEST 2011 root@servername:/usr/obj/usr/src/sys/servername i386 Some of the relevant ports: postgresql-client-8.4.9 postgresql-server-8.4.9_2 php5-pdo-5.3.8 php5-pdo_mysql-5.3.8 php5-pdo_pgsql-5.3.8 php5-pdo_sqlite-5.3.8 I will appreciate any help, since I really need this calendar server. -- *Jon Theil Nielsen*