Error compiling Mapgen 6.25
Adalberto da Silva
adalbert at iag.usp.br
Tue Apr 28 20:43:23 EDT 1998
Hello Grass Users!
I'm trying to compile Mapgen 6.25 using the source code from Markus
Neteler's site (many, many thanks, Markus!).
Main Grass binaries I've installed (from Markus... Thanks again.) are
working fine and smooth. I let them all at /usr/local/grass42 for the
sake of simplicity (no further edits, no further checkings).
I downloaded the source code and gunziped & untared it under this all
common and plain vanilla tree.
All the links to libraries are OK, I copied gmake4.2 to /usr/local/bin,
symlinked gzcat to zcat. I wish everything is quite the same I've
encountered on the documents from Markus.
Then I changed to /usr/local/grass42/src421/src.related/mapgen_625 and
try a 'gmake4.2'.
I got that scrolled down message:
> SRC = /usr/local/grass42/src421/src
> CMD = /usr/local/grass42/src421/src/CMD
> HEADER = linux
> ARCH = linux
> GISBASE = /usr/local/grass42
> VERSION = 4.2.1 V.14 - April 1998
> #################################################################
> /usr/local/grass42/src421/src.related/mapgen_6.25
> make -f OBJ.linux/make.rules
>
> /usr/local/grass42/src421/gmake4.2 setup
> SRC = /usr/local/grass42/src421/src
> CMD = /usr/local/grass42/src421/src/CMD
> HEADER = linux
> ARCH = linux
> GISBASE = /usr/local/grass42
> VERSION = 4.2.1 V.14 - April 1998
> #################################################################
> /usr/local/grass42/src421/src.related/mapgen_6.25/setup
> make -f OBJ.linux/make.rules
>
> make[1]: Entering directory `/usr/local/grass42/src421/src.related/mapgen_6.25/setup'
> MGGEN.sh /usr/local/grass42
> make[1]: Leaving directory `/usr/local/grass42/src421/src.related/mapgen_6.25/setup'
> make [1]: MGGEN.sh: Command not found
> make [1]: *** [all] Error 127
> make: [all] Error 2
I read a litle the scripts itself and noted the commands pointed to
.../mapgen4.0. Then I changed again to /usr/local/grass42/.../mapgen4.0
and fired another 'gmake4.2'. Now I got a longer message but no
succesful compiling yet"
> SRC = /usr/local/grass42/src421/src
> CMD = /usr/local/grass42/src421/src/CMD
> HEADER = linux
> ARCH = linux
> GISBASE = /usr/local/grass42
> VERSION = 4.2.1 V.14 - April 1998
> #################################################################
> /usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0
> make -f OBJ.linux/make.rules
>
> /usr/local/bin/gmake4.2 lib/src
> SRC = /usr/local/grass42/src421/src
> CMD = /usr/local/grass42/src421/src/CMD
> HEADER = linux
> ARCH = linux
> GISBASE = /usr/local/grass42
> VERSION = 4.2.1 V.14 - April 1998
> #################################################################
> /usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/lib/src
> make -f OBJ.linux/make.rules
>
> make[1]: Entering directory `/usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/lib/src'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/lib/src'
> /usr/local/bin/gmake4.2 src
> SRC = /usr/local/grass42/src421/src
> CMD = /usr/local/grass42/src421/src/CMD
> HEADER = linux
> ARCH = linux
> GISBASE = /usr/local/grass42
> VERSION = 4.2.1 V.14 - April 1998
> #################################################################
> /usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/src
> make -f OBJ.linux/make.rules
>
> make[1]: Entering directory `/usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/src'
> gcc -Wl -s -o /usr/local/grass42/mapgen/bin/legend OBJ.linux/legend.o ../../lib/LIB.linux/libgen.a ../../lib/LIB.linux/libgraph.a -lm
> make[1]: Leaving directory `/usr/local/grass42/src421/src.related/mapgen_6.25/mapgen4.0/src'
> gcc : .../../lib/LIB.linux/libgraph.a: No such file or directory
> make [1]: ***[/usr/local/grass42/mapgen/bin/legend] Error 1
> make: *** [all] Error 2
A couple of questions:
What is that 'libgraph.a' I've not found in my disk? (I'm using Debian
1.3 R3 and gcc 2.7.2.1)
Does anyone find what's going wrong? (being more precise: what am I
doing wrong?)
Many thanks,
Adalberto da Silva
Instituto Astronomico e Geofisico - USP
Sao Paulo - Brasil
adalbert at iag.usp.br
More information about the grass-user
mailing list