Hi Dave, Sorry for the late reply.
This might help: sudo apt-get install php5-pgsql (I think I recall having to do that.) You will likely have to restart apache. Per: http://www.delizeka.net/eng/call-to-undefined-function-pg_connect-when-php5-pgsql-is-installed you may need to add extension=pgsql.so to the end of your php.ini file. I don't recall making any such edit. Here's what I have (I don't know what any of these files do): $ grep -Ri pgsql.so /etc/php5 /etc/php5/apache2/conf.d/pdo_pgsql.ini:extension=pdo_pgsql.so /etc/php5/apache2/conf.d/pgsql.ini:extension=pgsql.so /etc/php5/conf.d/pdo_pgsql.ini:extension=pdo_pgsql.so /etc/php5/conf.d/pgsql.ini:extension=pgsql.so /etc/php5/cli/conf.d/pdo_pgsql.ini:extension=pdo_pgsql.so /etc/php5/cli/conf.d/pgsql.ini:extension=pgsql.so $ sudo find /etc -iname "*php.ini*" /etc/php5/apache2/php.ini /etc/php5/cli/php.ini So, that extension is _not_ in [either of] _my_ php.ini. Hope that helps more than confuses. Take care, Pete On Thu, Aug 11, 2011 at 4:04 AM, <fossology-requ...@fossology.org> wrote: > Message: 2 > Date: Wed, 10 Aug 2011 15:28:21 -0600 > From: Dave McLoughlin <dave.mclough...@openlogic.com> > Subject: [FOSSology] Ubuntu 11.04 > To: "fossology@fossology.org" <fossology@fossology.org> > Message-ID: <ca685415.10238%dave.mclough...@openlogic.com> > Content-Type: text/plain; charset="iso-8859-1" > > Has anyone tried to install Fossology 1.4.0 on Ubuntu 11.04? > > I ran into some problems a few weeks ago with some database issues and > haven?t had time to get back to it until this week. I just tried a fresh > install from source and got the following at the end of fo-postinstall > script: > > *** Checking database connectivity *** > NOTE: Connect succeeded, database is working. > *** Initializing database tables *** > PHP Fatal error: Call to undefined function pg_connect() in > /usr/local/share/fossology/www/common/common-db.php on line 51 > ERROR: Unable to initialize. > > Mary L had recommended I check out my postgresql config, probably still the > same issue. I?m just wondering if anyone has seen this and has been able to > solve it. > > Thanks, > > Dave > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://fossology.org/pipermail/fossology/attachments/20110810/9e15e8c6/attachment-0001.htm> > > ------------------------------ > > Message: 3 > Date: Wed, 10 Aug 2011 15:56:58 -0600 > From: Bob Gobeille <bob.gobei...@hp.com> > Subject: Re: [FOSSology] Ubuntu 11.04 > To: Dave McLoughlin <dave.mclough...@openlogic.com> > Cc: "fossology@fossology.org" <fossology@fossology.org> > Message-ID: <62f660d3-1e42-4e47-85b7-ec4059abc...@hp.com> > Content-Type: text/plain; charset="windows-1252" > > Hi Dave, > I don't use Ubuntu 11.04, but this is a php error. I'd check that your > version of php has the PostgreSQL extensions. > > Bob Gobeille > > > On Aug 10, 2011, at 3:28 PM, Dave McLoughlin wrote: > >> Has anyone tried to install Fossology 1.4.0 on Ubuntu 11.04? >> >> I ran into some problems a few weeks ago with some database issues and >> haven?t had time to get back to it until this week. I just tried a fresh >> install from source and got the following at the end of fo-postinstall >> script: >> >> *** Checking database connectivity *** >> NOTE: Connect succeeded, database is working. >> *** Initializing database tables *** >> PHP Fatal error: Call to undefined function pg_connect() in >> /usr/local/share/fossology/www/common/common-db.php on line 51 >> ERROR: Unable to initialize. >> >> Mary L had recommended I check out my postgresql config, probably still the >> same issue. I?m just wondering if anyone has seen this and has been able to >> solve it. > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://fossology.org/pipermail/fossology/attachments/20110810/61eb0d43/attachment-0001.htm> > > ------------------------------ > > Message: 4 > Date: Wed, 10 Aug 2011 18:26:55 -0500 > From: Dragoslav Mitrinovic <fdm...@motorola.com> > Subject: Re: [FOSSology] Ubuntu 11.04 > To: Bob Gobeille <bob.gobei...@hp.com> > Cc: Dave McLoughlin <dave.mclough...@openlogic.com>, > "fossology@fossology.org" <fossology@fossology.org> > Message-ID: > <cahzt09+-4x8qgdrzzovbivrg7d+afujwuvs0ewook9eanz1...@mail.gmail.com> > Content-Type: text/plain; charset="windows-1252" > > I have 1.4.1 installed on Ubuntu 11.04. I always rebuild from source, using > source debian packages, since that takes care of all the build-time and > run-time dependencies. > -Drago > > On Wed, Aug 10, 2011 at 4:56 PM, Bob Gobeille <bob.gobei...@hp.com> wrote: > >> Hi Dave, >> I don't use Ubuntu 11.04, but this is a php error. I'd check that your >> version of php has the PostgreSQL extensions. >> >> Bob Gobeille >> >> >> On Aug 10, 2011, at 3:28 PM, Dave McLoughlin wrote: >> >> Has anyone tried to install Fossology 1.4.0 on Ubuntu 11.04? >> >> I ran into some problems a few weeks ago with some database issues and >> haven?t had time to get back to it until this week. I just tried a fresh >> install from source and got the following at the end of fo-postinstall >> script: >> >> *** Checking database connectivity *** >> NOTE: Connect succeeded, database is working. >> *** Initializing database tables *** >> PHP Fatal error: Call to undefined function pg_connect() in >> /usr/local/share/fossology/www/common/common-db.php on line 51 >> ERROR: Unable to initialize. >> >> Mary L had recommended I check out my postgresql config, probably still the >> same issue. I?m just wondering if anyone has seen this and has been able to >> solve it. _______________________________________________ fossology mailing list fossology@fossology.org http://fossology.org/mailman/listinfo/fossology