gdal安装:
1.安装svn
sudo apt-get install subversion
2.安装gdal
svn checkout https://svn.osgeo.org/gdal/trunk/gdal gdal_source
cd gdal_source
./configure
sudo make && sudo make install
若安装安装完成后编译gdal程序出现以下问题:
undefined reference to ‘GDALAllRegister’
undefined reference to ‘GDALOpen’
原因是gdal相关依赖包没装。
sudo apt-get install build-essential
sudo apt-get install libhdf4-dev
sudo apt-get install python-dev