Help: Grass on Linux installation

Janne Soimasuo jsoi at gis.joensuu.fi
Wed Jul 13 08:47:51 EDT 1994


Hi !

The trick compiling modules using lex is to modify your /usr/lib/flex.skel.

Linux has flex and it's used instead of lex. Here is diffs betweed normal
linux /usr/lib/flex.skel (Slackware 1,?.?) and /usr/lib/flex.skel compiling 
********************************************
grass:
bash# diff flex.skel.grass flex.skel.ori 
11d10
< int yylineno;
130a130
> #define yywrap() 1
282c282
< static int yyinput YY_PROTO(( void ));
---
> static int input YY_PROTO(( void ));
513c513
<       if ( number_to_move == 1 )
---
>       if ( number_to_move - YY_MORE_ADJ == 1 )
637c637
< static int yyinput()
---
> static int input()
676c676
<                   return ( yyinput() );
---
>                   return ( input() );

*****************************************************

With this configuration I was able to compile r.binfer and r.combine.
Then you must edit $(GRASSBASE)/etc/bin/main/cmd/r.combine
and change : from 1st row to #!/bin/sh

I also used -traditional flag with compilation

********************************************************************************
* Janne Soimasuo            *     phone +358-73-151 4519                       *
* GIS & RS lab.             *     fax   +358-73-151 3590                       *
* Faculty of Forestry       *                                                  *
* University of Joensuu     *     email janne.soimasuo at joensuu.fi              *
*                           *           jsoi at gis.joensuu.fi                    *
* P.O.BOX 111               *                                                  *
* FIN-80101 JOENSUU         * "There never enough time to do all the nothing   *
* FINLAND                   *  you want"  Calvin                               *
********************************************************************************



More information about the grass-user mailing list