I found that it fails while trying to load libr-postgre.so. The "make
install" command installs it under /usr/local/lib while my apache-ubuntu
does not look for it in this path. I manually copied the library to /lib
and now it works.
Sergio.
El jue, 18-08-2005 a las 13:01 -0400, Bob Doan escribió:
> Are you
>
> dl("rlib.so") or dl("librlib.so")??
>
> On Thu, 2005-08-18 at 09:39 +0200, Sergio Viteri wrote:
> > Hi all!
> >
> > I have tested several installations of rlib under php4 and apache (i
> > have compiled them manually) working fine. But in a recent installation
> > using ubuntu packages I find that I am not able to connect to postgres
> > database. I get no errors but the rlib_add_datasource_postgres function
> > returns an error code (-1). The postgres server is up and running
> > (tested with other clients). The connection string is the same as
> > always. This is my code:
> >
> > $db_user = "fv";
> > $db_pass = "admin";
> > $db_host = "localhost";
> > $db_name = "fv";
> > $conn_str = "dbname=$db_name host=$db_host port=5432 user=$db_user
> > password=$db_pass";
> > if (($errno = rlib_add_datasource_postgres($rlib, "facturavit",
> > "$conn_str")) != 0) {
> > echo "Connection fails. ($errno)";
> > exit;
> > }
> >
> > I am running Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 and postgresql
> > 7.4.7-2ubuntu2.
> >
> > Any ideas ?
> > thank you.
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Rlib-users mailing list
> > Rli...@li...
> > https://lists.sourceforge.net/lists/listinfo/rlib-users
>
>
|