Compiling ps.map on Linux

The map output module ps.map has to be compiled with a different flag on Linux. How can this be performed?

1. Compile the GRASS package as usual (please follow the instructions).

2. Now ps.map has to be compiled again:

(a) Change the compiling options in src421/src/CMD/head/linux using a text-editor:

from:
        COMPILE_FLAGS       = -O2 -m486 -DATT_386

to:
 
        COMPILE_FLAGS       = -O2 -m486 -fwritable-strings  -DATT_386
(b) Change directory to src421/src.alpha/ps.map
     cd /usr/local/grass42/src421/src.alpha/ps.map/

(c) Clean off the ps.map object files:

     find . -name 'OBJ*' -exec /bin/rm -rf {} \;

(d) Compile the ps.map tree again:

     gmake4.2

(e) Change the compiling options back to old values in src421/src/CMD/head/linux using a text-editor:

        COMPILE_FLAGS       = -O2 -m486 -DATT_386
That's it. Now ps.map should be usable without problems.
For your information: The ps.select bugfix of GRASS 4.1.5 is already included in GRASS 4.2.1.

Markus Neteler
28. October 1998
neteler@itc.it

Go back to GRASS FAQ