[GRASS-user] a beginners question

I have just been converted to Linux after struggling with cgywin!

How do I install a new grass module, in this case I have the file
r.horizon2.tar.gz on my desktop and my $GISBASE is /usr/lib/grass

I've done this before but I can't remember the commands and where everything
should go

Thanks
--
View this message in context: http://www.nabble.com/a-beginners-question-tp16370225p16370225.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Sat, 2008-03-29 at 16:20 -0700, Gazz1982 wrote:

I have just been converted to Linux after struggling with cgywin!

How do I install a new grass module, in this case I have the file
r.horizon2.tar.gz on my desktop and my $GISBASE is /usr/lib/grass

(You might need to be superuser/root to do "make install" in the end)

In general it must be something like:
1. copy "add-on" directory to /where/your/grass/source/is under the
respective generic module category

e.g. for i.pr it would be:

cp -r i.pr /where/your/grass/source/is/imagery/

2. configure grass

cd /where/your/source/is/

./configure #with your parameters

3. go to the "add-on" directory and "make it"

e.g.

cd /imagery/i.pr

make

4. back to grass source directory

make install

I've done this before but I can't remember the commands and where everything
should go

Thanks

Hope this helps (as it helped me once when somebody told me how make it)

Cheers,

Nikos

That doesn't seem to work,

Here is my directory structure under grass

bin
bwidget
docs
driver
etc
fonts
include
lib
scripts

I copied the r.horizon2 folder into the bin directory and tried to make it
it returned the same error

I have superuser/root permissions

I'm sure when i do it once I will be able to do it again and again!

Thanks for your help

there isn't an imagery or raster folder should I make one in the grass
directory?

Nikos Alexandris wrote:

On Sat, 2008-03-29 at 16:20 -0700, Gazz1982 wrote:

I have just been converted to Linux after struggling with cgywin!

How do I install a new grass module, in this case I have the file
r.horizon2.tar.gz on my desktop and my $GISBASE is /usr/lib/grass

(You might need to be superuser/root to do "make install" in the end)

In general it must be something like:
1. copy "add-on" directory to /where/your/grass/source/is under the
respective generic module category

e.g. for i.pr it would be:

cp -r i.pr /where/your/grass/source/is/imagery/

2. configure grass

cd /where/your/source/is/

./configure #with your parameters

3. go to the "add-on" directory and "make it"

e.g.

cd /imagery/i.pr

make

4. back to grass source directory

make install

I've done this before but I can't remember the commands and where
everything
should go

Thanks

Hope this helps (as it helped me once when somebody told me how make it)

Cheers,

Nikos

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

--
View this message in context: http://www.nabble.com/a-beginners-question-tp16370225p16380608.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Sun, 2008-03-30 at 03:57 -0700, Gazz1982 wrote:

That doesn't seem to work,

Here is my directory structure under grass

bin
bwidget
docs
driver
etc
fonts
include
lib
scripts

I copied the r.horizon2 folder into the bin directory and tried to make it
it returned the same error

I have superuser/root permissions

I'm sure when i do it once I will be able to do it again and again!

Thanks for your help

there isn't an imagery or raster folder should I make one in the grass
directory?

Those directories are to be found under the grass' source code
directory, not the installed (GRASS GIS DB). Could you please try again?

Trying to make it more clear:
My grass source code is under "/usr/local/src/grass_trunk". This is
where I keep all source code(s).

The installed grass binaries is to be found
under /usr/loca/grass-6.3.svn

.

(I think I pointing out to the correct way. If not please somebody
correct me.)

[...]

> In general it must be something like:
> 1. copy "add-on" directory to /where/your/grass/source/is under the
> respective generic module category
>
> e.g. for i.pr it would be:
>
> cp -r i.pr /where/your/grass/source/is/imagery/
>

[...]

Cheers,

Nikos