[GRASS-user] r.example

Markus Neteler neteler at osgeo.org
Wed Jun 12 22:09:22 PDT 2013


On Wed, Jun 12, 2013 at 6:19 PM, Pedro Mendonça <pfmendonca at fc.ul.pt> wrote:
> My "r.example" binary went to another directory after it was compiled. I guess it's ok, but anyway, I started grass and on the shell I wrote this:
>
> GRASS 6.4.0+42329 (3763_Portugal):~/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin > ./r.example
> ./r.example: error while loading shared libraries: libgrass_gis.6.4.3RC3.so: cannot open shared object file: No such file or directory
>
> Is it "./r.example" or "r.example" ?
> What am I missing?

Since the command does not "see" the libraries, you appear to run it
outside of a GRASS
session.

You may take a look here how to set the needed environment variables
in case you don't
want to start a GRASS session explicitely:
http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Bash_examples_.28GNU.2FLinux.29

Markus


More information about the grass-user mailing list