[GRASS-dev] Star in the grass programing
Markus Neteler
neteler at itc.it
Tue May 29 11:25:36 EDT 2007
Hi Juan,
you have to run GRASS commands *inside* GRASS, means, that
you have to launch GRASS first. Then all paths will be
defined.
There are some possibilities to call GRASS commands from
"outside", see:
http://grass.gdf-hannover.de/wiki/GRASS_and_Shell
http://grass.gdf-hannover.de/wiki/Category:Linking_to_other_languages
Markus
On Tue, May 29, 2007 at 05:10:17PM +0200, Juan Diego Giraldo Osorio wrote:
> Hi everybody
>
> Thanks for help me. But, the problems are new. I had found the r.example
> executable file in the directory:
>
> /home/jdgiraldo/grass-6.2.1/dist.x86_64-unknown-linux-gnu/bin
>
> I access in this directory (cd /home/...) and try to execute the r.example:
>
> ./r.example
>
> the mistakes are the next:
>
> ./r.example: error while loading shared libraries: libgrass_gis.so:
> cannot open shared object file: No such file or directory
>
> I have this file (libgrass_gis.so) in
>
> /usr/local/grass-6.2.1/lib/libgrass_gis.so
>
> Thanks again.
>
> Juan Diego Giraldo Osorio
> UPCT
> España
>
>
>
> > On 29/05/07 15:30, Juan Diego Giraldo Osorio wrote:
> > > Hi Glynn
> > >
> > > I had ran the "make" file, and I have a directory
> > > (OBJ.x86_64-unknown-linux-gnu) in r.example (together with the main.c,
> > > makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory I found
> > > and object file (main.o). Excuse me, but I don't know what to do with
> > > this file. Can I execute it from grass??? Compile it with gcc??? Run it
> > > directly???
> >
> > You should also find an executable r.example in
> >
> > dist.i486-pc-linux-gnu/bin
> >
> > This is the module you can run.
> >
> > Moritz
> >
> >
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
More information about the grass-dev
mailing list