[GRASSLIST:4661] Re: Compiling Grass
David Bannon
D.Bannon at vpac.org
Thu Oct 28 09:19:53 EDT 2004
....
Stuff about 5.7 not compiling deleted.
....
Hi Miha, thanks for your suggestions. I grabbed the source for 5.3 and, as
you suggested, it compiles OK (except for src/raster/r.mapcalc3) as long as
I turn off gdal. If I turn on gdal it also balks at the lack of gdal-config,
just where is this file supposed to come from ?
Anyway, I installed the now compiled 5.3 and then tried gdal. It still
cannot find the grass libraries, I'm telling it where its been installed,
trying :
--with-grass=/usr/local01/grass53
--with-grass=/usr/local01/grass5.3.0
--with-grass=/usr/local01/grass53/lib
And getting errors like this
checking for G_asprintf in -lgrass_gis... no
configure: error: --with-grass=/usr/local01/grass53 requested, but libraries
not found!
So I have two problems :
1. I don't have a gdal-config, don't know what it should contain, cannot get
one.
2. I cannot get gdal to recognise the grass5.3 install, particularly
libgrass_gris (because its not there!)
Have to say that I don't see why I need 5.3 before installing 5.7, perhaps
that's the bit I'm missing. Are you doing something with the 5.3 install
that affects the 5.7 ?
I'm wondering if the problem is happening because we are installing into
/usr/local01/ rather than /usr/local. We need to do that because it's a
pretty large cluster, don't have a lot of flexability about how we install
things.
Your suggestions :
Fftw - yep, we have 2.1.3
Gdal - like I said, it will not compile with grass support, demanding to see
libgrass_gis. 5.3 does not make or install one.
Proj - got that compiled and installed.
Motif, blas and lapack - are installed.
Postgres - we don't plan to use postgres
Don't want to use rpms because want to find whats missing at this stage.
The system is part of a 200 CPU cluster running RH7.3, reasonably well
updated and the 2.4.26 kernel.
David
> David,
>
> Here is my experience in compiling first experimental
> cvs of GRASS 5.3 and then GRASS 5.7. You first need
> GRASS 5.3 installed to compile GRASS 5.7.
>
> First I compile the libraries needed for GRASS 5.3 to
> have all the additional stuff I want. That are:
>
> - fftw (you need the version 2 and not 3)
> (./configure, make, make install)
>
> - gdal (You should get the latest version 1.2.3 if I
> am not wrong. You do not need to compile gdal with
> grass)
>
> - proj (there are rpms of proj in the PostGIS site.
> Try to find 4.4.8
>
> - PostgreSQL (Many distros have it included, but the
> src.rpm is not difficult to compile.)
>
> - motif, blas and lapack are also included in my linux distribution
>
> Gdal, proj and PostgreSQL are strongly recommended.
> See also if you have tcltk on your machine. There is a
> nice GUI included with the source.
>
> Find and download Markus's conf_grass50_linux.sh shell
> script. It will help you to clear things up. You
> should edit it the way to suit your needs.
>
> After that make and make install should go without
> problems.
>
> GRASS 5.7 is a new version with stronger vector
> database support. To compile that follow the
> instructions of the INSTALL file in the main source
> directory. But you MUST have GRASS 5.3 installed
> first. The configure step is very similar to gras5.3
> configure, but be attentive to the CFLAGS="-g -Wall"
> and --with-grass50.
>
> You did not tell us what OS you are running. There are
> also precompiled versions of GRASS.
>
> Miha
>
>
>
>
>
> ___________________________________________________________ALL
> -NEW Yahoo! Messenger - all new features - even more fun!
> http://uk.messenger.yahoo.com
>
More information about the grass-user
mailing list