Thread: postgresql/postgis installation

postgresql/postgis installation

From
Nick
Date:
Trying to install postgis on LINUX machine, need to find the geos-
config file, as seems it is no where to be found after download of
postgis in the ./configure step, is there anyone that can give me a
clue on how to find this file? Ultimate goal is to get postgis working
so we can use geom data type in the tables on postgresql, and to get
php to be able to talk to postgresql when scripts are run using
pg_connect function.

during ./configure of postGIS errors out looking for geos-config

during ./configure of geos errors out looking for g++

to the best of my knowledge g++ is part of gcc and we have a current
version of the gcc compiler on the computer

More info...Linux distro RHEL5 and postgis version is 1.4.0.
Did a

rpm -qa | grep gcc

and gave me

gcc-4.1.2-46el14.4.1

Thinking was that this included the g++, is that not the case? Or do
we need a version gcc-c++? Thanks, hope you can help.

Re: postgresql/postgis installation

From
Laurent Wandrebeck
Date:
Why don't you use https://projects.commandprompt.com/public/pgcore ?
This repo provides a fonctionnal postgis rpm, and some more goodies.
If you really want to compile it yourself (bad idea, imho), you'll
need gcc-c++, and a quite a lot other packages.
Laurent.

Re: postgresql/postgis installation

From
"Albe Laurenz"
Date:
Nick wrote:
> Trying to install postgis on LINUX machine [...]
>
> during ./configure of postGIS errors out looking for geos-config
>
> during ./configure of geos errors out looking for g++
>
> to the best of my knowledge g++ is part of gcc and we have a current
> version of the gcc compiler on the computer
>
> More info...Linux distro RHEL5 and postgis version is 1.4.0.
> Did a
>
> rpm -qa | grep gcc
>
> and gave me
>
> gcc-4.1.2-46el14.4.1
>
> Thinking was that this included the g++, is that not the case? Or do
> we need a version gcc-c++? Thanks, hope you can help.

'which g++' will convince you that there is indeed no g++ on your
machine.

You'll have to install gcc-c++ as you suspected.

Yours,
Laurenz Albe