[GRASS-dev] Re: [GRASS GIS] #1178: WinGrass: g.extension - problem with path to $GISBASE

GRASS GIS trac at osgeo.org
Tue Oct 26 12:59:17 EDT 2010


#1178: WinGrass: g.extension - problem with path to $GISBASE
---------------------------------------------------------------+------------
 Reporter:  hellik                                             |       Owner:  grass-dev@…              
     Type:  defect                                             |      Status:  new                      
 Priority:  major                                              |   Milestone:  6.4.1                    
Component:  Installation                                       |     Version:  svn-releasebranch64      
 Keywords:  wingrass, g.extension, path, installation, addons  |    Platform:  MSWindows Vista          
      Cpu:  x86-32                                             |  
---------------------------------------------------------------+------------

Comment(by hellik):

 Replying to [comment:23 hellik]:
 >
 > I've tried following in the startup-script grass64svn.bat
 >
 > {{{
 > [...]
 > set GRASSDIR=%~dps0
 > set GRASSDIR=%GRASSDIR:~0,-1%
 > [...]
 > }}}
 >
 > the installation path is expanded in the short form without a trailing
 backslash.
 >
 > wingrass64 is starting and working normally.
 >
 > so maybe this way of getting the shortform of the installation path
 could help for ''make'' used by g.extension (maybe also for the +nadgrids-
 problem with spaces in path, ...)?
 >

 now I've tried the i.landsat.toar example from the manpage with this above
 mentioned approach of the short path name (WinGrass64 installed in
 C:\Program Files\GRASS-64-SVN)

 {{{
 g.extension extension=i.landsat.toar svnurl=https://svn.osgeo.org/grass
 /grass-addons
 which: wget: unknown command
 Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)...
 A    i.landsat.toar\landsat_set.c
 A    i.landsat.toar\local_proto.h
 A    i.landsat.toar\main.c
 A    i.landsat.toar\description.html
 A    i.landsat.toar\landsat.c
 A    i.landsat.toar\earth_sun.c
 A    i.landsat.toar\landsat.h
 A    i.landsat.toar\landsat_met.c
 A    i.landsat.toar\Makefile
 A    i.landsat.toar\earth_sun.h
  U   i.landsat.toar
 Checked out revision 44051.
 Compiling <i.landsat.toar>...
 mkdir -p /c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include/grass
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/lib
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/bin
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/etc
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/driver
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/driver/db
 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/fonts
 test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32
 gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include
 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2
 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include
 -DPACKAGE=\""grassmods"\"  -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-
 mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c
 gcc.exe: installation problem, cannot exec `cc1': No such
 file or directory
 make: *** [OBJ.i686-pc-mingw32/earth_sun.o] Error 1
 ERROR: Compilation failed, sorry. Please check above error messages.
 rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0
 8/user1/.tmp/6444.0/i.landsat.toar': Permission denied
 }}}

 so there is mentioned in message above:

 {{{
 /c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32
 }}}

 this is a relict of the original wingrass building environment, but,
 normally, this isn't there.

 Helmut

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



More information about the grass-dev mailing list