| 1 |
|
|---|
| 2 |
GDAL/OGR Binary Release |
|---|
| 3 |
======================= |
|---|
| 4 |
|
|---|
| 5 |
This is a release of GDAL/OGR libraries and related utilities. Full |
|---|
| 6 |
information on GDAL and OGR can be found at: |
|---|
| 7 |
|
|---|
| 8 |
http://www.remotesensing.org/gdal (GDAL) |
|---|
| 9 |
http://gdal.velocet.ca/projects/opengis (OGR) |
|---|
| 10 |
|
|---|
| 11 |
Details on the utility programs in this package can be found specifically at: |
|---|
| 12 |
|
|---|
| 13 |
http://www.remotesensing.org/gdal/gdal_utilities.html |
|---|
| 14 |
http://gdal.velocet.ca/projets/opengis/ogrhtml/ogr_utilities.html |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
Installing GDAL/OGR |
|---|
| 18 |
------------------- |
|---|
| 19 |
|
|---|
| 20 |
The install_unx.sh script can be used to install GDAL into an existing |
|---|
| 21 |
file system tree such as /usr/local or /usr. It assumes that the |
|---|
| 22 |
$PREFIX/bin directory will already be in the user path, and that |
|---|
| 23 |
$PREFIX/lib is already in the LD_LIBRARY_PATH or configured for ldconfig. |
|---|
| 24 |
If ldconfig is used it may be necessary to rerun ldconfig as root. |
|---|
| 25 |
|
|---|
| 26 |
To install: |
|---|
| 27 |
|
|---|
| 28 |
./install_unx.sh /usr/local |
|---|
| 29 |
|
|---|
| 30 |
Note that html documentation and python files are not installed. Only the |
|---|
| 31 |
shared library, binaries and shared data files are installed into |
|---|
| 32 |
$PREFIX/lib, $PREFIX/bin and $PREFIX/share/gdal respectively. |
|---|
| 33 |
|
|---|
| 34 |
After installation the "gdalinfo --version" command can be used to determine |
|---|
| 35 |
if the installation was successful. Then use "gdal_translate --version" |
|---|
| 36 |
to verify that the shared libraries are being found properly. If not |
|---|
| 37 |
add $PREFIX/lib to the LD_LIBRARY_PATH or rerun ldconfig as appropriate |
|---|
| 38 |
to local usage and the platform in question. |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
Using GDAL/OGR Without Installing |
|---|
| 42 |
--------------------------------- |
|---|
| 43 |
|
|---|
| 44 |
To utilize GDAL/OGR the following steps need to be followed: |
|---|
| 45 |
|
|---|
| 46 |
1) Define GDAL_HOME to point to this directory. |
|---|
| 47 |
2) Ensure that $GDAL_HOME/lib is in the LD_LIBRARY_PATH. |
|---|
| 48 |
3) Ensure $GDAL_HOME/bin is in the PATH. |
|---|
| 49 |
|
|---|
| 50 |
The following commands in a .cshrc file (for csh or tcsh) should suffice: |
|---|
| 51 |
|
|---|
| 52 |
setenv GDAL_HOME ...insert path to this distribution directory... |
|---|
| 53 |
set path = ($path $GDAL_HOME/bin) |
|---|
| 54 |
if ( $?LD_LIBRARY_PATH == 0 ) then |
|---|
| 55 |
setenv LD_LIBRARY_PATH $GDAL_HOME/lib |
|---|
| 56 |
else |
|---|
| 57 |
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$GDAL_HOME/lib |
|---|
| 58 |
endif |
|---|
| 59 |
|
|---|
| 60 |
The following commands should work for bash, sh, ksh and zsh: |
|---|
| 61 |
|
|---|
| 62 |
GDAL_HOME=...insert path to this distribution directory... |
|---|
| 63 |
export GDAL_HOME |
|---|
| 64 |
PATH=$PATH:$GDAL_HOME/bin |
|---|
| 65 |
if test "${LD_LIBRARY_PATH:-EMPTY}" == "EMPTY" ; then |
|---|
| 66 |
LD_LIBRARY_PATH=$GDAL_HOME/lib |
|---|
| 67 |
export LD_LIBRARY_PATH |
|---|
| 68 |
else |
|---|
| 69 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GDAL_HOME/lib |
|---|
| 70 |
fi |
|---|
| 71 |
|
|---|