[GRASSLIST:2593] libpq_fe.h error in grass5.7

hello,
i tried to install grass5.7 from the source: i m
installed postgresql-7.3.2, gdal, proj-4.4.7,
xerces-1.6.0,..and i m download the cvs head version
of grass5.3 but when i write:

root@etho grass57_exp_2003_12_13]# CFLAGS="-g -Wall"
./configure --with-grass50=/home/grass/

I get the following error:

checking for Tk_MainWindow in -ltk... yes
checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
checking for libpq-fe.h... no
configure: error: *** Unable to locate PostgreSQL

includes.

But the libpq_fe.h already exists in
/postgresql-7.3.2/src/interfaces/libpq/include/
please can any one help me.

Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

hamdi ines wrote:

hello,
i tried to install grass5.7 from the source: i m
installed postgresql-7.3.2, gdal, proj-4.4.7,
xerces-1.6.0,..and i m download the cvs head version
of grass5.3 but when i write:

root@etho grass57_exp_2003_12_13]# CFLAGS="-g -Wall"
./configure --with-grass50=/home/grass/

I get the following error:

checking for Tk_MainWindow in -ltk... yes
checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
checking for libpq-fe.h... no
configure: error: *** Unable to locate PostgreSQL

includes.

But the libpq_fe.h already exists in
/postgresql-7.3.2/src/interfaces/libpq/include/
please can any one help me.

You might try the --with-postgres-includes option e.g.
    --with-postgres-includes=/usr/include/postgresql/

--
Richard Greenwood
www.greenwoodmap.com

hello,
Now i tried:

CFLAGS="-g -Wall" ./configure

--with-grass50=/home/grass/
--with-postgres-includes=/usr/local/pgsql/include/

but i get a new error:

checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
/usr/local/pgsql/include
checking for libpq-fe.h... yes
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
configure: error: *** Unable to locate PostgreSQL
library.

WHAT CAN I INDICATE THE LIBRARY OF POSTGRES?

You might try the --with-postgres-includes option
e.g.
   
--with-postgres-includes=/usr/include/postgresql/

--
Richard Greenwood
www.greenwoodmap.com

Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

hamdi ines wrote:

hello,
Now i tried:

CFLAGS="-g -Wall" ./configure

--with-grass50=/home/grass/
--with-postgres-includes=/usr/local/pgsql/include/

but i get a new error:

checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
/usr/local/pgsql/include
checking for libpq-fe.h... yes
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... no
configure: error: *** Unable to locate PostgreSQL
library.

WHAT CAN I INDICATE THE LIBRARY OF POSTGRES?

--with-postgres-libs=/lib (with appropriate path for your system).

Rich

--
Richard Greenwood
www.greenwoodmap.com

Hello,

I have a huge sites list derived from side-scan sonar data. There are
millions of UTM coordinate pairs and their corresponding depths.

I'm going to interpolate this dataset but I want to extract some transects
from 'real' data to cross-examine to grid derived data.

In a few words, I need to extract all (x,y,z) triplets from my sites file
that lies along a dozen lines and are not farther than 100 meters from this
line.

Does anybody have any clue?

Thanks,

Adalberto da Silva
Departamento de Geologia - LAGEMAR - UFF

I have a huge sites list derived from side-scan sonar data. There are
millions of UTM coordinate pairs and their corresponding depths.

I'm going to interpolate this dataset but I want to extract some
transects from 'real' data to cross-examine to grid derived data.

In a few words, I need to extract all (x,y,z) triplets from my sites
file that lies along a dozen lines and are not farther than 100 meters
from this line.

Does anybody have any clue?

In GRASS 5.7, make a vector line (either by hand with v.in.ascii, or
s.in.ascii->v.digit to connect the dots), run 'v.buffer buffer=100',
then [v.select, v.extract, or 'v.overlay op=and' ??] to extract only
points within the buffer.

Not sure how to do it in 5.0 or 5.3, maybe after creating the vector
line use v.to.rast and r.buffer. Then use the r.buffer map as a MASK,
maybe by modifying s.out.ascii somehow?

good luck,
Hamish

On Saturday 14 February 2004 02:17, Hamish wrote:

> I have a huge sites list derived from side-scan sonar data. There are
> millions of UTM coordinate pairs and their corresponding depths.
>
> I'm going to interpolate this dataset but I want to extract some
> transects from 'real' data to cross-examine to grid derived data.
>
> In a few words, I need to extract all (x,y,z) triplets from my sites
> file that lies along a dozen lines and are not farther than 100 meters
> from this line.
>
> Does anybody have any clue?

In GRASS 5.7, make a vector line (either by hand with v.in.ascii, or
s.in.ascii->v.digit to connect the dots), run 'v.buffer buffer=100',
then [v.select, v.extract, or 'v.overlay op=and' ??] to extract only
points within the buffer.

Not sure how to do it in 5.0 or 5.3, maybe after creating the vector
line use v.to.rast and r.buffer. Then use the r.buffer map as a MASK,
maybe by modifying s.out.ascii somehow?

Or v.distance.

Radim