[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP3 w Postgres on a RaQ3i



>Hi,
>
>does anyone succeded in installing PHP3 with the option for postgres on
>RaQ3i?

I'll give you a qualified Yes; I installed php-3.0.14 on a Raq3.

It was fairly straightforward, except that I had to copy a couple of
folders of include files around a bit...

I wrote down these instructions after the fact, but here is what I did:

cd /usr/include/pgsql
mkdir include
cp *.h include
cd include
mkdir libpg
cp ../libpg/*.h .

(cd back to the php-3.0.14 directory, whereever it is)

Run the configure script like this, to make an apache module...

./configure --with-apxs=/usr/sbin/apxs --with-pgsql=/usr/include/pgsql
--bindir=/usr/sbin

(then I used vi to change the "$CC = gcc" line in the Makefile to be
"$CC = cc", I got a warning otherwise about different compilers being used
to compile Apache versus the module, and I didn't see a configure switch to
choose cc as my compiler)

then:

make
su
make install

That worked for me.

/s/

Jim Roberts
MacSourcery

>
>Audric Leperdi
>CIO - evolutiva srl
>Via Varallo, 30 -10153 - Torino - Italy
>www.evolutiva.com
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-users