Knowledge Base
A060405 - “Variables not set” and “data not set” errors
Products:
GeoExpress 6 and earlierSummary:
When trying to start GeoExpress, you may receive the following errors:
“GeoExpress cannot run because the following environment variables are not set: GDAL_DATA, PROJSO”
“GDAL_DATA not set”
Solution:
Manually set the required environment variables for GeoExpress. Alternatively, upgrade to GeoExpress 8.5; in recent versions, these paths are all relative to the executables and are set automatically.
Windows
On Windows, set the environment variables as follows:
- Right-click on My Computer.
- Select Properties.
- Click Advanced System Settings in the lefthand Tasks menu.
- On the Advanced tab, click Environment Variables.
Under System Variables, you may add the following variables and values (please note that the values given may be different on your computer; the path should be the path to your installation of GeoExpress):
GDAL_DATA:
C:/Program Files/LizardTech/GeoExpress 6.0/lib/project/data
LTI_PROFILE_HOME:
C:/Program Files/LizardTech/GeoExpress 6.0/profiles
PROJ_LIB:
C:/Program Files/LizardTech/GeoExpress 6.0/lib/project/nad
PROJSO:
C:/Program Files/LizardTech/GeoExpress 6.0/lib/
project/proj.dll
Solaris (Unix)
The installer prompts you to set the environment variables listed below and gives sample lines to insert into your shell initialization file (e.g. “.bashrc” for the Bash shell).
LT_UMDB_PATH
LD_LIBRARY_PATH
IMAGINE_HOME
PROJSO
GDAL_DATA
LTI_PROFILE_HOME
Since environment variables are not persistent between sessions, it is highly recommended that the LT_UMDB_PATH variable be set in the shell initialization file or else you will have to set it each time you log in.
Here are some sample values:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/geo6.0/lib:/
home/username/solarisgeo6.0.0.1331/libimg/usr/lib/
sun4sol export LD_LIBRARY_PATH
IMAGINE_HOME=/home/username/solarisgeo6.0.0.1331/libimg
export IMAGINE_HOME
PROJSO=/home/username/solarisgeo6.0.0.1331/libproject/
libproj.so export PROJSO
PROJ_LIB=/home/username/solarisgeo6.0.0.1331/libproject/nad
export PROJ_LIB
GDAL_DATA=/home/username/solarisgeo6.0.0.1331/libproject/data export GDAL_DATA
LTI_PROFILE_HOME=/home/username/solarisgeo6.0.0.1331/profiles
export LTI_PROFILE_HOME
This article was last updated or verified on 18 October 2012.
