ISCE安装

一、准备工作

1. 编译器

apt-get install build-essential gfortran

2. python

apt-get install python3 python3-dev

3. FFTW3

apt-get install libfftw3-3 libfftw3-dev

4. X11

apt-get install lesstif2 lesstif2-dev libxt-dev  #找不到源

用下面两行替换:
apt-cache search lesstif*

apt-get install libpawlib-lesstif3-dev

5. numpy

apt-get install python3-numpy

6. h5py

apt-get install libhdf5-serial-dev python3-setuptools

easy_install3 cython

easy_install3 h5py

7. scons

apt-get install scons

8. gdal

apt-get install gdal-bin libgdal1-dev  #安装gdal1.0?

easy_install3 GDAL    #安装有问题,找不到头文件

手动安装:

http://download.osgeo.org/gdal/2.1.3/gdal-2.1.3.tar.gz  #下载gdal2.1.3

% cd gdal*
% ./configure --with-python
# make install
没有更改安装路径,提示:

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

******************************************************

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH    #加入路径

easy_install3 GDAL   

安装后测试:gdalinfo --version

python3

>>from osgeo import gdal



你可能感兴趣的:(ISCE)