[GRASS-dev] Compiling GRASS on Ubuntu

i am using ubuntu 8.10. I have downloaded grass 6.2.3 source code. I referred the INSTAL file and installed all pre requisites. I am trying to compile the source code now. But when i enter the command ‘make’, it says, Makefile:22: include/Make/Platform.make: No such file or directory Makefile:23: include/Make/Grass.make: No such file or directory make: *** No rule to make target `include/Make/Grass.make’. Stop. Please provide me step by step details on how to compile the source code.


View this message in context: Compiling GRASS on Ubuntu
Sent from the Grass - Dev mailing list archive at Nabble.com.

dasuni kannangara wrote:

i am using ubuntu 8.10. I have downloaded grass 6.2.3 source code. I referred the INSTAL file and installed all pre requisites. I am trying to compile the source code now. But when i enter the command 'make', it says,

Makefile:22: include/Make/Platform.make: No such file or directory
Makefile:23: include/Make/Grass.make: No such file or directory
make: *** No rule to make target `include/Make/Grass.make'. Stop.
  

Have you configured the source code first with ./configure? See also (B) COMPILATION in the INSTALL file.

Please provide me step by step details on how to compile the source code.
  

1. get source code for grass-6.4.0RC3, this version is much better than grass-6.2.3
2. run ./configure within the directory grass-6.4.0RC3 with your choice of configuration options, optionally first ./configure --help to see configuration options
3. only now can you 'make' grass

see also grass wiki on compile and install [1]

[1] http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu

Thanks Markus. i followed the instructions, still am getting the same result. I have attached a screen shot of the console. Please refer it and please reply what i can do to compile the codes properly.console

Markus Metz-2 wrote:
dasuni kannangara wrote: > i am using ubuntu 8.10. I have downloaded grass 6.2.3 source code. I referred the INSTAL file and installed all pre requisites. I am trying to compile the source code now. But when i enter the command ‘make’, it says, > > Makefile:22: include/Make/Platform.make: No such file or directory > Makefile:23: include/Make/Grass.make: No such file or directory > make: *** No rule to make target `include/Make/Grass.make’. Stop. > Have you configured the source code first with ./configure? See also (B) COMPILATION in the INSTALL file. > Please provide me step by step details on how to compile the source code. > 1. get source code for grass-6.4.0RC3, this version is much better than grass-6.2.3 2. run ./configure within the directory grass-6.4.0RC3 with your choice of configuration options, optionally first ./configure --help to see configuration options 3. only now can you ‘make’ grass see also grass wiki on compile and install [1] [1] http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev


View this message in context: Re: Compiling GRASS on Ubuntu
Sent from the Grass - Dev mailing list archive at Nabble.com.

On Wed, Apr 8, 2009 at 11:29 AM, dasuni kannangara <dasuni7@gmail.com> wrote:

Thanks Markus. i followed the instructions, still am getting the same
result. I have attached a screen shot of the console. Please refer it and
please reply what i can do to compile the codes properly.console

When you execute ./configure, look out for error messages. In your
case, configure quits with an error message:
configure: error: *** Unable to locate lex

in your case, you have to install lex

Make sure that you have all dependencies (and the dev packages!) installed.

Cheers

Rainer

Markus Metz-2 wrote:
dasuni kannangara wrote: > i am using ubuntu 8.10. I have downloaded grass
6.2.3 source code. I referred the INSTAL file and installed all pre
requisites. I am trying to compile the source code now. But when i enter the
command 'make', it says, > > Makefile:22: include/Make/Platform.make: No
such file or directory > Makefile:23: include/Make/Grass.make: No such file
or directory > make: *** No rule to make target `include/Make/Grass.make'.
Stop. > Have you configured the source code first with ./configure? See also
(B) COMPILATION in the INSTALL file. > Please provide me step by step
details on how to compile the source code. > 1. get source code for
grass-6.4.0RC3, this version is much better than grass-6.2.3 2. run
./configure within the directory grass-6.4.0RC3 with your choice of
configuration options, optionally first ./configure --help to see
configuration options 3. only now can you 'make' grass see also grass wiki
on compile and install [1] [1]
http://grass.osgeo.org/wiki/Compile_and_Install#Ubuntu
_______________________________________________ grass-dev mailing list
grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

________________________________
View this message in context: Re: Compiling GRASS on Ubuntu
Sent from the Grass - Dev mailing list archive at Nabble.com.

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa

On 08/04/09 12:42, Rainer M Krug wrote:

On Wed, Apr 8, 2009 at 11:29 AM, dasuni kannangara <dasuni7@gmail.com> wrote:

Thanks Markus. i followed the instructions, still am getting the same
result. I have attached a screen shot of the console. Please refer it and
please reply what i can do to compile the codes properly.console

When you execute ./configure, look out for error messages. In your
case, configure quits with an error message:
configure: error: *** Unable to locate lex

in your case, you have to install lex

Make sure that you have all dependencies (and the dev packages!) installed.

To make this easier on any Debian-derived system (such as Ubuntu) you can run

apt-get build-dep grass

first in order to install all build dependencies.

You can also do this:

apt-get source grass

to get the source code of the ubuntu grass package, then copy the debian/ folder in that source code into the more recent source code you downloaded from the GRASS site and then run 'fakeroot dpkg-buildpackage' in the root directory of the source code.

You are aware that there are fairly recent grass packages for Ubuntu available here:

http://les-ejk.cz/ubuntu/

?

Moritz

Thanks a lot. I could install all dependencies and successfully compiled GRASS source code. I got some errors on nviz and i solved those too. somehow, through console i compiled the code. but after that, i opened the codes in eclipse (whole project). when i tried to build the project, i got 21 errors from main.c file in visualization/ximgview folder. I cant figure out the reasons. i have attached a screenshot of those too. Please tell me how i can solve those.

Rainer M Krug-6 wrote:
On Wed, Apr 8, 2009 at 11:29 AM, dasuni kannangara


View this message in context: Re: Compiling GRASS on Ubuntu
Sent from the Grass - Dev mailing list archive at Nabble.com.