s.db.rim compiled version

Mark P. Line markline at henson.cc.wwu.edu
Mon Apr 4 14:40:48 EDT 1994


On Mon, 4 Apr 1994, Doug Bradley wrote:

> I found the copy of s.db.rim under grass4.1/bin and copied it
> to $GISBASE/bin but now I get a message as follows...

> s.db.rim
> 
> ERROR: program 's.db.rim' cannot be executed because:
>  
> Neither a command line (cmd) or interactive (inter) version was found
>    in any of the main, alpha, or contrib directories.
> 
> What havent I done?
> 
All the $GISBASE/bin programs really do is hunt around for a *real*
command-line or interactive program (depending on how the program was
invoked by the user) and execute that. The reason for this is that every
single GRASS command is supposed to work the same way in this regard. As a
matter of fact, if you examine the programs listed under $GISBASE/bin,
you'll find that they're all exactly the same size. If you examine the
directory entries even more closely (with 'ls -li' for instance), you'll
find they're all hardlinks to the same file, a program called 'front.end'
which resides under $GISBASE/etc. It is etc/front.end that merely looks to
see under what name it has been invoked this time (d.rast? d.mon?
s.db.rim?), goes hunting for either a command-line or interactive program
of this name, and starts it.

etc/front.end looks for the command-line or interactive programs under the
directories $GISBASE/etc/bin/main, $GISBASE/etc/bin/alpha and
$GISBASE/etc/bin/contrib. Each of these three directories has two
subdirectories called 'cmd' and 'inter', and *that's* where the actual
executable GRASS commands are found.

So, if you're freemeling around with these things by hand, you need to
just create a link under $GISBASE/bin to $GISBASE/etc/front.end with
your command name (s.db.rim here), then make sure that at least one real
command program of this name can be found and executed under one of the
'cmd' or 'inter' directories mentioned above. Your missing program
s.db.rim should probably go under contrib, I reckon, since it's not main
or alpha.

-- Mark

--------------------------------------------------------------------
Mark P. Line                       Phone: +1-206-733-6040
Open Pathways                        Fax: +1-206-733-6040
P.O. Box F                         Email: markline at henson.cc.wwu.edu
Bellingham, WA 98227-0296
--------------------------------------------------------------------





More information about the grass-user mailing list