Thread: install woes

install woes

From
Mike E
Date:
Hello,

Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
on my slack box at home. However, I'm running into trouble installing
php w/ postgres. When I apachectl start, I get:

    Cannot load /usr/local/apache/libexec/libphp4.so into server:
    libpq.so.2.1: cannot open shared object file: No such file or
    directory

I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
it into /usr/local/apache/libexec just for fun, but that didn't
work. Does anyone know of a good web page or have any tips ideas
on how to get this working?

Thanks.
Mike

--
Mike Erickson <mee@quidquam> http://www.quidquam.com/
"Hatred is the coward's revenge for being intimidated" - George Bernard Shaw

Re: install woes

From
Rodrigo Fernandez
Date:
Citando Mike E <mee@quidquam.com>:

> Hello,
>
> Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> on my slack box at home. However, I\'m running into trouble installing
> php w/ postgres. When I apachectl start, I get:
>
>     Cannot load /usr/local/apache/libexec/libphp4.so into server:
>     libpq.so.2.1: cannot open shared object file: No such file or
>     directory
>
> I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
> it into /usr/local/apache/libexec just for fun, but that didn\'t
> work. Does anyone know of a good web page or have any tips ideas
> on how to get this working?
>

You should the path that is especifid en the httpd.conf of apache,
there should be a line like this:

LoadModule php4_module        libexec/apache/libphp4.so

this path is relative to the base of apache, in redhat 6.x it should
be something like /etc/httpd.

Rodrigo F.



-----------------------------------------------------
This mail sent through IMP: http://web.horde.org/imp/

Re: install woes

From
Stephen van Egmond
Date:
Mike E (mee@quidquam.com) wrote:
> Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> on my slack box at home. However, I'm running into trouble installing
> php w/ postgres. When I apachectl start, I get:
>
>     Cannot load /usr/local/apache/libexec/libphp4.so into server:
>     libpq.so.2.1: cannot open shared object file: No such file or
>     directory
>
> I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
> it into /usr/local/apache/libexec just for fun, but that didn't
> work. Does anyone know of a good web page or have any tips ideas
> on how to get this working?

I think this is in the FAQ... somewhere.  I'm sure I've seen it in the
build instructions.

I think you need to change your library search path, to explicitly
include /usr/local/pgsql/lib/ .  I have seen suggestions that you edit
/etc/ld.so.conf . It found this creepy, so I symlink'ed it in with all
my other libraries in /usr/lib/ .

Re: install woes

From
"Adam Lang"
Date:
I use the php.net documentation... can'r find the specific page I used, but
here is the same info:  Juct click on installation in the table of contents.

http://www.php.net/distributions/bigmanual.html

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "Mike E" <mee@quidquam.com>
To: <pgsql-php@postgresql.org>
Sent: Thursday, October 26, 2000 7:52 AM
Subject: install woes


> Hello,
>
> Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> on my slack box at home. However, I'm running into trouble installing
> php w/ postgres. When I apachectl start, I get:
>
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> libpq.so.2.1: cannot open shared object file: No such file or
> directory
>
> I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
> it into /usr/local/apache/libexec just for fun, but that didn't
> work. Does anyone know of a good web page or have any tips ideas
> on how to get this working?
>
> Thanks.
> Mike
>
> --
> Mike Erickson <mee@quidquam> http://www.quidquam.com/
> "Hatred is the coward's revenge for being intimidated" - George Bernard
Shaw


Re: install woes

From
"Adam Lang"
Date:
I entered the path in the ld.so.conf and then ran (I think) ldso.  I did it
initially and had no problem ith that error.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "Stephen van Egmond" <svanegmond@bang.dhs.org>
To: <pgsql-php@postgresql.org>
Sent: Thursday, October 26, 2000 11:07 AM
Subject: Re: install woes


> Mike E (mee@quidquam.com) wrote:
> > Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> > on my slack box at home. However, I'm running into trouble installing
> > php w/ postgres. When I apachectl start, I get:
> >
> > Cannot load /usr/local/apache/libexec/libphp4.so into server:
> > libpq.so.2.1: cannot open shared object file: No such file or
> > directory
> >
> > I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
> > it into /usr/local/apache/libexec just for fun, but that didn't
> > work. Does anyone know of a good web page or have any tips ideas
> > on how to get this working?
>
> I think this is in the FAQ... somewhere.  I'm sure I've seen it in the
> build instructions.
>
> I think you need to change your library search path, to explicitly
> include /usr/local/pgsql/lib/ .  I have seen suggestions that you edit
> /etc/ld.so.conf . It found this creepy, so I symlink'ed it in with all
> my other libraries in /usr/lib/ .


Re: install woes

From
Chris
Date:
>I entered the path in the ld.so.conf and then ran (I think) ldso.  I did it
>initially and had no problem ith that error.

/usr/sbin/ldconfig is the file you run after adding the line
/usr/local/pgsql/lib/ into /etc/ld.so.conf i'm pretty sure.
I have this in my quick tutorial,
http://designmagick.50megs.com/postgresql-tutorial/

> > Mike E (mee@quidquam.com) wrote:
> > > Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> > > on my slack box at home. However, I'm running into trouble installing
> > > php w/ postgres. When I apachectl start, I get:
> > >
> > > Cannot load /usr/local/apache/libexec/libphp4.so into server:
> > > libpq.so.2.1: cannot open shared object file: No such file or
> > > directory
> > >
> > > I have libpq.so.2.1 in /usr/local/pgsql/lib by default, and I copied
> > > it into /usr/local/apache/libexec just for fun, but that didn't
> > > work. Does anyone know of a good web page or have any tips ideas
> > > on how to get this working?
> >
> > I think this is in the FAQ... somewhere.  I'm sure I've seen it in the
> > build instructions.
> >
> > I think you need to change your library search path, to explicitly
> > include /usr/local/pgsql/lib/ .  I have seen suggestions that you edit
> > /etc/ld.so.conf . It found this creepy, so I symlink'ed it in with all
> > my other libraries in /usr/lib/ .


------------------------
Chris Smith
http://www.squiz.net

Re: install woes

From
Mike E
Date:
On Thu, Oct 26, 2000 at 04:52:17AM -0700, Mike E wrote:
> Hello,
>
> Tonight I installed apache 1.3.14, mysql, postgres, and php4.0.3pl1
> on my slack box at home. However, I'm running into trouble installing
> php w/ postgres. When I apachectl start, I get:
>
>     Cannot load /usr/local/apache/libexec/libphp4.so into server:
>     libpq.so.2.1: cannot open shared object file: No such file or
>     directory
> [snip]

Thanks to all who helped out. It turns out that indeed my libpq.so.* file wasn't
in the library search path, so I made a symlink from /usr/local/lib and it works.
However, I'll probably change this and add /usr/local/pgsql/lib to the ld.so.conf
because you never know what other pgsql libs might be needed in the future.

Thanks again.

Mike

--
Mike Erickson <mee@quidquam> http://www.quidquam.com/
"Hatred is the coward's revenge for being intimidated" - George Bernard Shaw