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

GRASS GIS trac at osgeo.org
Wed Jan 26 09:39:02 EST 2011


#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]:
 >
 > {{{
 > [...]
 > set GRASSDIR=%~dps0
 > set GRASSDIR=%GRASSDIR:~0,-1%
 > [...]
 > }}}
 >
 > the installation path is expanded in the short form without a trailing
 backslash.

 some updated information with a recent self built Wingrass65svn-installer:

 I've changed and added following in the startup script

 {{{
 rem Set GRASS Installation Directory Variable
 rem set GRASSDIR=C:\Program Files\GRASS 6.5.SVN

 set GRASSDIR=%~dps0
 set GRASSDIR=%GRASSDIR:~0,-1%

 rem set GRASS_ADDON_PATH

 set GRASS_ADDON_PATH=%~dps0
 set GRASS_ADDON_PATH=%GRASS_ADDON_PATH:~0,-1%\addons
 }}}

 result:

 {{{
 g.extension --verbose extension=i.landsat.toar
 svnurl=https://svn.osgeo.org/grass/grass-addons
 Using WGET for downloading data.
 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 45194.
 Compiling <i.landsat.toar>...
 C:/PROGRA~1/GRASS6~1.SVN/include/Make/Module.make:25:
 warning: overriding commands for target `install'
 C:/PROGRA~1/GRASS6~1.SVN/include/Make/Rules.make:90:
 warning: ignoring old commands for target `install'
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/bin.i686-pc-mingw32
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-
 mingw32/include/grass
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/lib
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/bin
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/etc
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/driver
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-
 mingw32/driver/db
 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/fonts
 test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32
 gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/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/apps/grass/grass-6.5.svn/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/g65/.tmp/6348.0/i.landsat.toar': Permission denied
 }}}

 Helmut

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



More information about the grass-dev mailing list