[GRASS-user] Missing some tools: v.db.addcol, for example

Hi GRASS list,

I've noticed that a few tools in my GRASS 6.4 appear to be missing, or
at least missing from my path. Here is an example:

GRASS 6.4.0RC4 (colombia):~/> v.db.addcol countries_simpl col="diss int(1)"
bash: v.db.addcol: command not found

And yet, when I look for the tool under my install dir, it appears to be there:

$ find /usr/local/grass-6.4.0RC4 -name "v.db.addcol*"
/usr/local/grass-6.4.0RC4/docs/html/v.db.addcol.html
/usr/local/grass-6.4.0RC4/locale/scriptstrings/v.db.addcol_to_translate.c
/usr/local/grass-6.4.0RC4/man/man1/v.db.addcol.1
/usr/local/grass-6.4.0RC4/scripts/v.db.addcol
/usr/local/grass-6.4.0RC4/scripts/v.db.addcol/v.db.addcol
/usr/local/grass-6.4.0RC4/scripts/v.db.addcol/v.db.addcol.tmp.html
/usr/local/grass-6.4.0RC4/dist.i686-pc-linux-gnu/docs/html/v.db.addcol.html
/usr/local/grass-6.4.0RC4/dist.i686-pc-linux-gnu/man/man1/v.db.addcol.1
/usr/local/grass-6.4.0RC4/dist.i686-pc-linux-gnu/scripts/v.db.addcol

It's only a problem with certain tools. I have the same problem with
d.redraw for example, but not with d.erase. The difference seems to
be that d.erase is not under the scripts dir, but is instead in bin
(all under GRASS of course).

Is there some way I can add the scripts tools back in, and is this the
sign that I just screwed up the install somehow?

Thanks,

Roger
--

Roger André wrote:

I've noticed that a few tools in my GRASS 6.4 appear to be
missing, or at least missing from my path.

from the GRASS terminal, what does "echo $PATH" say?

Here is an example:

...

bash: v.db.addcol: command not found

And yet, when I look for the tool under my install dir, it
appears to be there:

$ find /usr/local/grass-6.4.0RC4 -name "v.db.addcol*"

...

/usr/local/grass-6.4.0RC4/dist.i686-pc-linux-gnu/scripts/v.db.addcol

It's only a problem with certain tools. I have the same
problem with d.redraw for example, but not with d.erase.

d.redraw is another shell script like v.db.addcol found in
$GISBASE/scripts. d.erase is a C program found in $GISBASE/bin/

Is there some way I can add the scripts tools back in, and
is this the sign that I just screwed up the install somehow?

check to see that the scripts dir made it into the PATH, if not,
add it.

PATH="$PATH:$GISBASE/scripts"
export PATH

No idea why that would fail.

Hamish

Thanks,

My PATH while in GRASS already contains the scripts dir:

GRASS 6.4.0RC4 (colombia):~ > echo $PATH
/usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>

What I did find is that each script is under a directory by the same
name in the scripts dir. So for example, d.redraw is in:
/usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw

I'm going through all of these now, and removing the dir and leaving
the script. Somewhat tedious, but the scripts appear to work.

Roger
--

On Wed, Oct 14, 2009 at 10:34 PM, Hamish <hamish_b@yahoo.com> wrote:

Roger André wrote:

I've noticed that a few tools in my GRASS 6.4 appear to be
missing, or at least missing from my path.

from the GRASS terminal, what does "echo $PATH" say?

Here is an example:

...

bash: v.db.addcol: command not found

And yet, when I look for the tool under my install dir, it
appears to be there:

$ find /usr/local/grass-6.4.0RC4 -name "v.db.addcol*"

...

/usr/local/grass-6.4.0RC4/dist.i686-pc-linux-gnu/scripts/v.db.addcol

It's only a problem with certain tools. I have the same
problem with d.redraw for example, but not with d.erase.

d.redraw is another shell script like v.db.addcol found in
$GISBASE/scripts. d.erase is a C program found in $GISBASE/bin/

Is there some way I can add the scripts tools back in, and
is this the sign that I just screwed up the install somehow?

check to see that the scripts dir made it into the PATH, if not,
add it.

PATH="$PATH:$GISBASE/scripts"
export PATH

No idea why that would fail.

Hamish

On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:

Thanks,

My PATH while in GRASS already contains the scripts dir:

GRASS 6.4.0RC4 (colombia):~ > echo $PATH
/usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>

What I did find is that each script is under a directory by the same
name in the scripts dir. So for example, d.redraw is in:
/usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw

Wow. This is not desired of course. I am a bit surprised.

I'm going through all of these now, and removing the dir and leaving
the script. Somewhat tedious, but the scripts appear to work.

Would you mind to check if this is still valid for RC5?

Markus

On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
> My PATH while in GRASS already contains the scripts dir:

> GRASS 6.4.0RC4 (colombia):~ > echo $PATH
> /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>

Mine too (the grass-6.4.0svn version).

> What I did find is that each script is under a directory by the same
> name in the scripts dir. So for example, d.redraw is in:
> /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw

On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:

Wow. This is not desired of course. I am a bit surprised.

Maybe I don't get that right but I have grass64_release, grass640_0rc5,
grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
contains a directory for each script. In each script-directory there are
description (html) files and also README, Makefiles, etc.

Isn't this ok?

> I'm going through all of these now, and removing the dir and leaving
> the script. Somewhat tedious, but the scripts appear to work.

Would you mind to check if this is still valid for RC5?

Isn't this just a matter of file/ directory permission(s)? (shrug)
Nikos

> On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
> > My PATH while in GRASS already contains the scripts dir:

> > GRASS 6.4.0RC4 (colombia):~ > echo $PATH
> > /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>

Mine too (the grass-6.4.0svn version).

> > What I did find is that each script is under a directory by the same
> > name in the scripts dir. So for example, d.redraw is in:
> > /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw

On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:
> Wow. This is not desired of course. I am a bit surprised.

On Fri, 2009-10-16 at 12:18 +0200, Nikos Alexandris wrote:

[Replying to myself]

Maybe I don't get that right but I have grass64_release, grass640_0rc5,
grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
contains a directory for each script. In each script-directory there are
description (html) files and also README, Makefiles, etc.

Isn't this ok?

Yes it is (for the source code :-). Under /usr/local/grass... (the
installed stuff; currently I use the 64 version) all scripts are bare
files under the scripts directory.

> > I'm going through all of these now, and removing the dir and leaving
> > the script. Somewhat tedious, but the scripts appear to work.

> Would you mind to check if this is still valid for RC5?

...
Nikos

On Fri, 2009-10-16 at 15:01 +0200, Nikos Alexandris wrote:

> > On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
> > > My PATH while in GRASS already contains the scripts dir:
>
> > > GRASS 6.4.0RC4 (colombia):~ > echo $PATH
> > > /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>
>
> Mine too (the grass-6.4.0svn version).
>
>
> > > What I did find is that each script is under a directory by the same
> > > name in the scripts dir. So for example, d.redraw is in:
> > > /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw
>
> On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:
> > Wow. This is not desired of course. I am a bit surprised.

On Fri, 2009-10-16 at 12:18 +0200, Nikos Alexandris wrote:

[Replying to myself]

> Maybe I don't get that right but I have grass64_release, grass640_0rc5,
> grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
> contains a directory for each script. In each script-directory there are
> description (html) files and also README, Makefiles, etc.
>
> Isn't this ok?

Yes it is (for the source code :-). Under /usr/local/grass... (the
installed stuff; currently I use the 64 version) all scripts are bare
files under the scripts directory.

> > > I'm going through all of these now, and removing the dir and leaving
> > > the script. Somewhat tedious, but the scripts appear to work.
>
> > Would you mind to check if this is still valid for RC5?

I've installed grass-6.4.0RC5 and there is no problem. Scripts (all of
them I suppose seem to) work fine ~ I 've tested several.

Nikos

Hi Markus,

Thanks for your inquiry about this. Everything works now, after
having moved all scripts from sub-directory into $GISBASE/scripts.
I'm teaching myself how to use GRASS with your excellent book, so I am
far from being an expert at installation and configuration options.
However in response to Nikos's question, I am not sure how changing
permissions would have solved this problem. Following the defined
$PATH would only bring you to the directory, and not the script
itself. It would seem to me that part of the make process would be to
copy these scripts into the correct directory, but since they appear
to be the same place... I dunno.

Thanks,

Roger
--

On Fri, Oct 16, 2009 at 6:08 AM, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de> wrote:

On Fri, 2009-10-16 at 15:01 +0200, Nikos Alexandris wrote:

> > On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
> > > My PATH while in GRASS already contains the scripts dir:
>
> > > GRASS 6.4.0RC4 (colombia):~ > echo $PATH
> > > /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>
>
> Mine too (the grass-6.4.0svn version).
>
>
> > > What I did find is that each script is under a directory by the same
> > > name in the scripts dir. So for example, d.redraw is in:
> > > /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw
>
> On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:
> > Wow. This is not desired of course. I am a bit surprised.

On Fri, 2009-10-16 at 12:18 +0200, Nikos Alexandris wrote:

[Replying to myself]

> Maybe I don't get that right but I have grass64_release, grass640_0rc5,
> grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
> contains a directory for each script. In each script-directory there are
> description (html) files and also README, Makefiles, etc.
>
> Isn't this ok?

Yes it is (for the source code :-). Under /usr/local/grass... (the
installed stuff; currently I use the 64 version) all scripts are bare
files under the scripts directory.

> > > I'm going through all of these now, and removing the dir and leaving
> > > the script. Somewhat tedious, but the scripts appear to work.
>
> > Would you mind to check if this is still valid for RC5?

I've installed grass-6.4.0RC5 and there is no problem. Scripts (all of
them I suppose seem to) work fine ~ I 've tested several.

Nikos

Roger André wrote:

Hi Markus,

Thanks for your inquiry about this. Everything works now, after
having moved all scripts from sub-directory into $GISBASE/scripts.
I'm teaching myself how to use GRASS with your excellent book, so I am
far from being an expert at installation and configuration options.
However in response to Nikos's question, I am not sure how changing
permissions would have solved this problem.

My bad Roger. I was looking at the source code tree.

Following the defined
$PATH would only bring you to the directory, and not the script
itself. It would seem to me that part of the make process would be to
copy these scripts into the correct directory, but since they appear
to be the same place... I dunno.

How did you perform the installation, if I may ask?

Nikos
---

On Fri, Oct 16, 2009 at 6:08 AM, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de> wrote:
> On Fri, 2009-10-16 at 15:01 +0200, Nikos Alexandris wrote:
>>
>> > > On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
>> > > > My PATH while in GRASS already contains the scripts dir:
>> >
>> > > > GRASS 6.4.0RC4 (colombia):~ > echo $PATH
>> > > > /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>
>> >
>> > Mine too (the grass-6.4.0svn version).
>> >
>> >
>> > > > What I did find is that each script is under a directory by the same
>> > > > name in the scripts dir. So for example, d.redraw is in:
>> > > > /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw
>> >
>> > On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:
>> > > Wow. This is not desired of course. I am a bit surprised.
>>
>> On Fri, 2009-10-16 at 12:18 +0200, Nikos Alexandris wrote:
>>
>> [Replying to myself]
>>
>> > Maybe I don't get that right but I have grass64_release, grass640_0rc5,
>> > grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
>> > contains a directory for each script. In each script-directory there are
>> > description (html) files and also README, Makefiles, etc.
>> >
>> > Isn't this ok?
>>
>> Yes it is (for the source code :-). Under /usr/local/grass... (the
>> installed stuff; currently I use the 64 version) all scripts are bare
>> files under the scripts directory.
>>
>>
>> > > > I'm going through all of these now, and removing the dir and leaving
>> > > > the script. Somewhat tedious, but the scripts appear to work.
>> >
>> > > Would you mind to check if this is still valid for RC5?
>
> I've installed grass-6.4.0RC5 and there is no problem. Scripts (all of
> them I suppose seem to) work fine ~ I 've tested several.
>
> Nikos
>
>
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Nikos,

I downloaded the source, grass-6.4.0RC4.tar.gz, unpacked it into
/usr/local, and then ran the following commands:

---------------------------
- Install GRASS

- needs Tcl/tk
  $ sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

- needs fftw
$ sudo apt-get install fftw-dev

$ sudo ./configure --with-python
--with-gdal=/usr/local/bin/gdal-config
--with-tcltk-includes=/usr/include/tcl8.4
--with-postgres-includes=/usr/local/postgresql-8.3.5/src/include
-with-postgres-libs=/usr/local/postgresql-8.3.5/src/include/lib
--with-cxx

$ sudo make

$ sudo make install

-------------------

On Fri, Oct 16, 2009 at 11:05 AM, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de> wrote:

Roger André wrote:

Hi Markus,

Thanks for your inquiry about this. Everything works now, after
having moved all scripts from sub-directory into $GISBASE/scripts.
I'm teaching myself how to use GRASS with your excellent book, so I am
far from being an expert at installation and configuration options.
However in response to Nikos's question, I am not sure how changing
permissions would have solved this problem.

My bad Roger. I was looking at the source code tree.

Following the defined
$PATH would only bring you to the directory, and not the script
itself. It would seem to me that part of the make process would be to
copy these scripts into the correct directory, but since they appear
to be the same place... I dunno.

How did you perform the installation, if I may ask?

Nikos
---

On Fri, Oct 16, 2009 at 6:08 AM, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de> wrote:
> On Fri, 2009-10-16 at 15:01 +0200, Nikos Alexandris wrote:
>>
>> > > On Thu, Oct 15, 2009 at 5:00 PM, Roger André <randre@gmail.com> wrote:
>> > > > My PATH while in GRASS already contains the scripts dir:
>> >
>> > > > GRASS 6.4.0RC4 (colombia):~ > echo $PATH
>> > > > /usr/local/grass-6.4.0RC4/bin:/usr/local/grass-6.4.0RC4/scripts:<snip>
>> >
>> > Mine too (the grass-6.4.0svn version).
>> >
>> >
>> > > > What I did find is that each script is under a directory by the same
>> > > > name in the scripts dir. So for example, d.redraw is in:
>> > > > /usr/local/grass-6.4.0RC4/scripts/d.redraw/d.redraw
>> >
>> > On Fri, 2009-10-16 at 11:44 +0200, Markus Neteler wrote:
>> > > Wow. This is not desired of course. I am a bit surprised.
>>
>> On Fri, 2009-10-16 at 12:18 +0200, Nikos Alexandris wrote:
>>
>> [Replying to myself]
>>
>> > Maybe I don't get that right but I have grass64_release, grass640_0rc5,
>> > grass6_devel, grass_trunk. In all of them the scripts (sub-)directory
>> > contains a directory for each script. In each script-directory there are
>> > description (html) files and also README, Makefiles, etc.
>> >
>> > Isn't this ok?
>>
>> Yes it is (for the source code :-). Under /usr/local/grass... (the
>> installed stuff; currently I use the 64 version) all scripts are bare
>> files under the scripts directory.
>>
>>
>> > > > I'm going through all of these now, and removing the dir and leaving
>> > > > the script. Somewhat tedious, but the scripts appear to work.
>> >
>> > > Would you mind to check if this is still valid for RC5?
>
> I've installed grass-6.4.0RC5 and there is no problem. Scripts (all of
> them I suppose seem to) work fine ~ I 've tested several.
>
> Nikos
>
>
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Roger André:

Hi Nikos,
I downloaded the source, grass-6.4.0RC4.tar.gz, unpacked it into
/usr/local,

hmm?

If you have a tarred source named "grass-6.4.0RC4.tar.gz" after
unpacking it you get a directory called grass-6.4.0RC4. The installation
process installs over it at "/usr/local/grass-6.4.0RC4/" as I can see in
your first post, then this should be the root of the problem.

Perhaps its better to move the source tree somewhere else
(e.g. /usr/local/src).

and then ran the following commands:

---------------------------
- Install GRASS

- needs Tcl/tk
  $ sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

- needs fftw
$ sudo apt-get install fftw-dev

$ sudo ./configure

Better to use pure "./configure" here.

--with-python
--with-gdal=/usr/local/bin/gdal-config
--with-tcltk-includes=/usr/include/tcl8.4
--with-postgres-includes=/usr/local/postgresql-8.3.5/src/include
-with-postgres-libs=/usr/local/postgresql-8.3.5/src/include/lib
--with-cxx

$ sudo make

Here too, use pure "make".

$ sudo make install

-------------------

Hope this helps :slight_smile:
Nikos

Ok, will do. Thanks for the help.

Roger
--

On Fri, Oct 16, 2009 at 11:54 AM, Nikos Alexandris
<nikos.alexandris@felis.uni-freiburg.de> wrote:

Roger André:

Hi Nikos,
I downloaded the source, grass-6.4.0RC4.tar.gz, unpacked it into
/usr/local,

hmm?

If you have a tarred source named "grass-6.4.0RC4.tar.gz" after
unpacking it you get a directory called grass-6.4.0RC4. The installation
process installs over it at "/usr/local/grass-6.4.0RC4/" as I can see in
your first post, then this should be the root of the problem.

Perhaps its better to move the source tree somewhere else
(e.g. /usr/local/src).

and then ran the following commands:

---------------------------
- Install GRASS

- needs Tcl/tk
$ sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

- needs fftw
$ sudo apt-get install fftw-dev

$ sudo ./configure

Better to use pure "./configure" here.

--with-python
--with-gdal=/usr/local/bin/gdal-config
--with-tcltk-includes=/usr/include/tcl8.4
--with-postgres-includes=/usr/local/postgresql-8.3.5/src/include
-with-postgres-libs=/usr/local/postgresql-8.3.5/src/include/lib
--with-cxx

$ sudo make

Here too, use pure "make".

$ sudo make install

-------------------

Hope this helps :slight_smile:
Nikos