[GIS] Specifying GISBASE location for QGIS install

grassinstallationqgis

I am just a beginner at this QGIS and GRASS and I am using this QGIS 2.0.1 Dufour which
throws a error at the startup that

"QGIS couldn't find your GRASS installation. Would you like to
specify path (GISBASE) to your GRASS installation?
"

I cannot find the root cause of the problem or any way to solve it.

From other forum posts, I can see that many others have seen this
problem but no one has given a clear cut solution to it.

If someone can help me with this issue, it will be really helpful. My project work is at halt, so please help me solve it.

**The installer is **

QGIS-OSGeo4W-2.0.1-3-Setup-x86

and

WinGRASS-6.4.3-1-Setup

Also one more update is that it runs fine on my laptop which intel i7 and 4GB RAM with Windows 8
but not on my desktop which is an INTEL DUAL CORE and 2GB RAM which has Windows 7 Enterprise


my "postinstall.log" FILE:

`C:\Program Files\QGIS Dufour\postinstall.log
OSGEO4W_ROOT=C:\PROGRA~1\QGIS Dufour
OSGEO4W_STARTMENU=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour
OSGEO4W_ROOT_MSYS=/C/PROGRA~1/QGIS Dufour

C:\PROGRA~1\QGIS Dufour>"C:\PROGRA~1\QGIS Dufour"\bin\make-bat-for-py.bat

    Generating .bat files for all .py files in C:\PROGRA~1\QGIS Dufour\bin


C:\PROGRA~1\QGIS Dufour>set ICON=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico 

C:\PROGRA~1\QGIS Dufour>set ICON_CMD=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico 

C:\PROGRA~1\QGIS Dufour>set ICON_TCLTK=C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico 

C:\PROGRA~1\QGIS Dufour>set BATCH=C:\PROGRA~1\QGIS Dufour\bin\grass64.bat 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\bin\grass64.bat 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\bin\grass64 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour"\apps\grass\grass-6.4.3\etc\fontcap 

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3"  

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 GUI.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-wx" \ "Launch GRASS GIS 6.4.3 with wxGUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico"  

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 GUI.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments;         -wx
Working Directory: \
Description:       Launch GRASS GIS 6.4.3 with wxGUI
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Old TclTk GUI.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-tcltk" \ "Launch GRASS GIS 6.4.3 with the old TclTk GUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico"  

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Old TclTk GUI.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments;         -tcltk
Working Directory: \
Description:       Launch GRASS GIS 6.4.3 with the old TclTk GUI
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_tcltk.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Command Line.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-text" \ "Launch GRASS GIS 6.4.3 in text mode" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico"  

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\GRASS GIS 6.4.3\GRASS 6.4.3 Command Line.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments;         -text
Working Directory: \
Description:       Launch GRASS GIS 6.4.3 in text mode
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_cmd.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\GRASS GIS 6.4.3.lnk" "C:\PROGRA~1\QGIS Dufour\bin\grass64.bat" "-wx" \ "Launch GRASS GIS 6.4.3 with wxGUI" 1 "C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico"  

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Desktop\GRASS GIS 6.4.3.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\bin\grass64.bat
Arguments;         -wx
Working Directory: \
Description:       Launch GRASS GIS 6.4.3 with wxGUI
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\grass\grass-6.4.3\etc\gui\icons\grass_osgeo.ico


C:\PROGRA~1\QGIS Dufour>del "C:\PROGRA~1\QGIS Dufour"\bin\grass64.bat.tmpl 

C:\PROGRA~1\QGIS Dufour>del "C:\PROGRA~1\QGIS Dufour"\bin\grass64.tmpl 

C:\PROGRA~1\QGIS Dufour>for %f in ("C:\Users\ab281182\AppData\Local\Temp") do call set TEMPDRIVE=%~df 

C:\PROGRA~1\QGIS Dufour>call set TEMPDRIVE=C: 

C:\PROGRA~1\QGIS Dufour>cd C:\Users\ab281182\AppData\Local\Temp 

C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2005_x86.exe" /q /t:C: 

C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS 

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2005_x86.exe" 

C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2008_x86.exe" /q 

C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS 

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2008_x86.exe" 

C:\Users\ab281182\AppData\Local\Temp>"C:\PROGRA~1\QGIS Dufour\bin\vcredist_2010_x86.exe" /q 

C:\Users\ab281182\AppData\Local\Temp>if errorlevel 3010 echo Dufour\etc\reboot 1>C:\PROGRA~1\QGIS 

C:\Users\ab281182\AppData\Local\Temp>del "C:\PROGRA~1\QGIS Dufour\bin\vcredist_2010_x86.exe" 

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" 
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\MSYS Shell.lnk"       "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat" " " \ "Minimal SYStem" 7 "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico" 

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\MSYS Shell.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat
Arguments;          
Working Directory: \
Description:       Minimal SYStem
Display Mode:      Minimized  (7)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\MSYS Shell.lnk" "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat" " " \ "Minimal SYStem" 7 "C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico" 

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Desktop\MSYS Shell.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\apps\msys\msys.bat
Arguments;          
Working Directory: \
Description:       Minimal SYStem
Display Mode:      Minimized  (7)
Icon file:         C:\PROGRA~1\QGIS Dufour\apps\msys\msys.ico


C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps/msys/etc/fstab 

C:\PROGRA~1\QGIS Dufour>dllupdate -oite -copy -reboot "C:\PROGRA~1\QGIS Dufour\bin\libeay32.dll" 
C:\PROGRA~1\QGIS Dufour\bin\libeay32.dll: Version=1.0.1.3
C:\Windows\system32\libeay32.dll: Version=0.0.0.0
Target does not exist, no action.

C:\PROGRA~1\QGIS Dufour>dllupdate -oite -copy -reboot "C:\PROGRA~1\QGIS Dufour\bin\ssleay32.dll" 
C:\PROGRA~1\QGIS Dufour\bin\ssleay32.dll: Version=1.0.1.3
C:\Windows\system32\ssleay32.dll: Version=0.0.0.0
Target does not exist, no action.

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\pyuic4.bat 

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps\Python27\Lib\site-packages\PyQt4\pyqtconfig.py 

C:\PROGRA~1\QGIS Dufour>call C:\PROGRA~1\QGIS Dufour\bin\make-bat-for-py.bat 
'C:\PROGRA~1\QGIS' is not recognized as an internal or external command,
operable program or batch file.

C:\PROGRA~1\QGIS Dufour>call "C:\PROGRA~1\QGIS Dufour"\bin\o4w_env.bat 

'"C:\PROGRA~1\QGIS"' is not recognized as an internal or external command,
operable program or batch file.
OSGEO4W home is C:\PROGRA~1\QGIS Dufour
Synchronizing CRS database with GDAL/PROJ definitions.
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
Loading epsg.wkt
0 WKTs loaded
CRS update (inserted:0 updated:0 deleted:3631 errors:0)
No CRS updates were necessary.

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\qgis.bat 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin\qgis-browser.bat 

C:\PROGRA~1\QGIS Dufour>REM get short path without blanks 

C:\PROGRA~1\QGIS Dufour>for %i in ("C:\PROGRA~1\QGIS Dufour") do set O4W_ROOT=%~fsi 

C:\PROGRA~1\QGIS Dufour>set O4W_ROOT=C:\PROGRA~1\QGIS Dufour 

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" 
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" "QGIS Desktop 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico" 

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" "QGIS Browser 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis-browser.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico" 

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "~$folder.desktop$" "QGIS Desktop 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico" 

C:\PROGRA~1\QGIS Dufour>if not 1 == 0 nircmd shortcut "C:\PROGRA~1\QGIS Dufour\bin\nircmd.exe" "~$folder.desktop$" "QGIS Browser 2.0.1" "exec hide C:\PROGRA~1\QGIS Dufour\bin\qgis-browser.bat" "C:\PROGRA~1\QGIS Dufour\apps\qgis\icons\QGIS.ico" 

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\PROGRA~1\QGIS Dufour\apps\qgis\bin\qgis.reg" 

C:\PROGRA~1\QGIS Dufour>"C:\Windows\regedit" /s "C:\PROGRA~1\QGIS Dufour\apps\qgis\bin\qgis.reg" 

C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t "C:\\PROGRA~1\\QGIS Dufour"\bin\qt.conf 

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\Setup.lnk" "C:\PROGRA~1\QGIS Dufour\bin\setup.bat -R C:\PROGRA~1\QGIS Dufour" "" "" "Installer" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico" 

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\Setup.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\bin\setup.bat -R C:\PROGRA~1\QGIS Dufour
Arguments;         
Working Directory: 
Description:       Installer
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico


C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin/setup.bat 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t bin/setup-test.bat 

C:\PROGRA~1\QGIS Dufour>mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour" 
A subdirectory or file C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour already exists.

C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\OSGeo4W.lnk" "C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico" 

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Microsoft\Windows\Start Menu\Programs\QGIS Dufour\OSGeo4W.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat
Arguments;          
Working Directory: \
Description:       OSGeo for Windows command shell
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico


C:\PROGRA~1\QGIS Dufour>xxmklink "C:\ProgramData\Desktop\OSGeo4W.lnk" "C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico" 

XXMkLink     ver 1.00    (c)2005 Copyright  Pixelab, Inc.

The shortut created as follows

Shortcut path:     C:\ProgramData\Desktop\OSGeo4W.lnk
Target object:     C:\PROGRA~1\QGIS Dufour\OSGeo4W.bat
Arguments;          
Working Directory: \
Description:       OSGeo for Windows command shell
Display Mode:      Normal Window (1)
Icon file:         C:\PROGRA~1\QGIS Dufour\OSGeo4W.ico


C:\PROGRA~1\QGIS Dufour>set OSGEO4W_ROOT=C:\\PROGRA~1\\QGIS Dufour 

C:\PROGRA~1\QGIS Dufour>textreplace -std -t apps\Python27\Lib\site-packages\sipconfig.py 
`

So what do you think now?


Best Answer

This problem is related to the deactivation of short names under windows. The short names compatibility is required for a large number of program. To reset the management of short names for access to the QGIS directory, open a box of MS/DOS dialog by running cmd.exe in administrator mode, on the root directory, execute the following two lines of commands: C: > fsutil 8dot3name set 0 C: > fsutil file setshortname "Program Files" "PROGRA~1" Dir / x command to check the short name for the folder "Program Files"

You can execute the same commands for the folder "QGIS Dufour" with the short name "QGISDU~1", or you can reinstall qgis because the command "fsutil 8dot3name set 0" modifies the new directories.

Related Question