[GRASS-dev] Re: [GRASS GIS] #1254: v.build error

GRASS GIS trac at osgeo.org
Tue Jan 4 04:19:04 EST 2011


#1254: v.build error
---------------------+------------------------------------------------------
 Reporter:  akbgf    |       Owner:  grass-dev@…              
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  7.0.0                    
Component:  Vector   |     Version:  svn-trunk                
 Keywords:  v.build  |    Platform:  Linux                    
      Cpu:  x86-32   |  
---------------------+------------------------------------------------------

Comment(by mmetz):

 Replying to [comment:6 akbgf]:
 > Replying to [comment:5 martinl]:
 > >
 > > can you post some debug info?
 > >
 > > {{{
 > > gdb v.build
 > > run map=field
 > > }}}
 > >
 > > More info at http://grass.osgeo.org/wiki/GRASS_Debugging
 >
 >
 > Some debug info is in the attached file debug04012011.log.
 >
 I see some suspicious settings in the debug log:

 show env shows LOCATION_NAME and MAPSET, but not GISDBASE. Further on, I
 think that LOCATION_NAME, MAPSET, and GISDBASE are usually not visibly
 with show env, but can usually be shown with g.gisenv, if grass is started
 by running grass70. If you have set all environment variables required by
 grass manually, you also need to set GISDBASE.

 Then there is

 {{{
 LD_LIBRARY_PATH=/wrk/andres/sw/linux/suse11/src/grass70/grass_trunk/dist.i686
 -pc-linux-
 gnu/lib:/usr/lib/mpi/gcc/openmpi/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib
 GISBASE=/home/grass
 PWD=/wrk/andres/sw/linux/suse11/src/grass70/grass_trunk/dist.i686-pc-
 linux-gnu/bin
 }}}

 which is strange because GISBASE is supposed to be the location of your
 grass installation, but it does not match LD_LIBRARY_PATH. Any reason why
 PWD is in the bin directory of the source build? Once grass is initialized
 properly, you can run grass modules from anywhere.

 I guess that GISBASE and LD_LIBRARY_PATH should be either

 {{{
 LD_LIBRARY_PATH=/wrk/andres/sw/linux/suse11/src/grass70/grass_trunk/dist.i686
 -pc-linux-
 gnu/lib:/usr/lib/mpi/gcc/openmpi/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib
 GISBASE=/wrk/andres/sw/linux/suse11/src/grass70/grass_trunk/dist.i686-pc-
 linux-gnu
 }}}

 or

 {{{
 LD_LIBRARY_PATH=/home/grass/lib:/usr/lib/mpi/gcc/openmpi/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib:/wrk/andres/sw/linux/suse11/bin/MonitorSoftware/lib
 GISBASE=/home/grass
 }}}

 in case you have installed grass to /home/grass.

 Finally,

 {{{
 GISRC=/wrk/andres/.grass7/rc
 }}}

 looks suspicious because grass7 uses a temporary copy of rc, usually
 located in something like

 {{{
 GISRC=/tmp/grass7-<user name>-<pid>/gisrc
 }}}

 (side note to devs: why not in the grass .tmp directory ?)

 Altogether, it seems that grass is not started properly.

 Markus M

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1254#comment:7>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list