3.18 and pgsql driver error

Hi all,


I trying to install matrix 3.18 on FreeBSD



In 2 step I have this error:



[codebox]# php install/step_02.php /usr/local/www/apache22/mysource_matrix



Fatal error: Uncaught exception 'Exception' with message 'Could not create database connection: DBError!:could not find driver' in /usr/local/www/apache22/mysource_matrix/core/include/mysource.inc:2186

Stack trace:

#0 /usr/local/www/apache22/mysource_matrix/core/include/mysource.inc(211): MySource->changeDatabaseConnection('db')

#1 /usr/local/www/apache22/mysource_matrix/core/include/init.inc(233): MySource->init()

#2 /usr/local/www/apache22/mysource_matrix/install/step_02.php(57): require_once('/usr/local/www/…')

#3 {main}

thrown in /usr/local/www/apache22/mysource_matrix/core/include/mysource.inc on line 2186

[/codebox]





But I have php5 and PEAR.

php5-5.2.5 PHP Scripting Language

php5-bcmath-5.2.5 The bcmath shared extension for php

php5-bz2-5.2.5 The bz2 shared extension for php

php5-ctype-5.2.5 The ctype shared extension for php

php5-curl-5.2.5 The curl shared extension for php

php5-dom-5.2.5 The dom shared extension for php

php5-extensions-1.1 A "meta-port" to install PHP extensions

php5-gd-5.2.5 The gd shared extension for php

php5-gettext-5.2.5 The gettext shared extension for php

php5-iconv-5.2.5 The iconv shared extension for php

php5-mbstring-5.2.5 The mbstring shared extension for php

php5-mcrypt-5.2.5 The mcrypt shared extension for php

php5-mhash-5.2.5 The mhash shared extension for php

php5-openssl-5.2.5 The openssl shared extension for php

php5-pcre-5.2.5 The pcre shared extension for php

php5-pdo-5.2.5 The pdo shared extension for php

php5-pgsql-5.2.5 The pgsql shared extension for php

php5-posix-5.2.5 The posix shared extension for php

php5-pspell-5.2.5 The pspell shared extension for php

php5-session-5.2.5 The session shared extension for php

php5-shmop-5.2.5 The shmop shared extension for php

php5-simplexml-5.2.5 The simplexml shared extension for php

php5-sockets-5.2.5 The sockets shared extension for php

php5-spl-5.2.5 The spl shared extension for php

php5-tokenizer-5.2.5 The tokenizer shared extension for php

php5-wddx-5.2.5 The wddx shared extension for php

php5-xml-5.2.5 The xml shared extension for php

php5-xmlreader-5.2.5 The xmlreader shared extension for php

php5-xmlwriter-5.2.5 The xmlwriter shared extension for php

php5-zlib-5.2.5 The zlib shared extension for php



PEAR:

pear-1.6.2_1 PEAR framework for PHP

pear-DB-1.7.13,1 PEAR Database Abstraction Layer

pear-File_Archive-1.5.3 PEAR class to manipulate tar, gz, tgz, bz2, tbz, zip, ar (d

pear-MIME_Type-1.0.0 PEAR class for dealing with MIME types

pear-Mail-1.1.14 PEAR class that provides multiple interfaces for sending em

pear-Mail_Mime-1.5.2,1 PEAR classes to create and decode MIME messages

pear-Text_Diff-0.2.1 Engine for performing and rendering text diffs

pear-XML_HTMLSax-2.1.2 PEAR SAX parser for HTML and other badly formed XML documen

pear-XML_Parser-1.2.8 PEAR XML parsing class based on PHP's bundled expat



PGSQL:

postgresql-client-8.2.6_1 PostgreSQL database (client)

postgresql-server-8.2.6 The most advanced open-source database available anywhere



From psql I can connect to mysource matrix db.



[codebox]psql -U matrix -d db_matrix -h 127.0.0.1 -p 5432

Welcome to psql 8.2.6, the PostgreSQL interactive terminal.



Type: \copyright for distribution terms

\h for help with SQL commands

\? for help with psql commands

\g or terminate with semicolon to execute query

\q to quit



db_matrix=>

[/codebox]



As I can see in this error there is a problem with driver for pgsql but php

is compiled with support for pgsql and PDO :expressionless:

Any idea what is wrong??



Best Regards,

Arek


You need the PDO-pgsql driver. PDO doesn't use PHP's pgsql driver, it has its own.

Hi Avi :slight_smile:



I found in ports tree pdo_pgsql and now I have installed matrix :slight_smile:



Regards

Arek