tar -xvf libgeotiff-1.7.1.tar.gz cd libgeotiff-1.7.1/ ./configure --prefix=your_install_dir/geotiff \ --with-libtiff=your_install_dir/tiff \ --with-proj=your_install_dir/proj \ --with-zlib --with-jpeg make make check make install
/usr/bin/ld: geogrid_tiles.o: undefined reference to symbol 'ceil@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1exit status make: *** [Makefile:357: convert_geotiff] Error 1
缺少数学库-lm的链接,可以执行:
1 2
sed -i 's/-lgeotiff -ltiff/-lgeotiff -ltiff -lproj -lz -ljpeg -lm/' Makefile make -j1 V=1
HDF-EOS To GeoTIFF Conversion Tool (HEG) Installation ----------------------------------------------------------
To install the HEG Tool:
1. The heg.tar file must be present inthe current directory. 2. You must know thedirectory path where the HEG is to be installed. 3. You must know the path tothe Java bin directoryonyoursystem.
Do you wish to proceed withthe HEG v2.15 Build 9.8 installation? [y/n] y
Where would you like to install HEG?
IMPORTANT NOTE: Be sure to give an absolute directory path, without special characters. For example: /home/faculty/jsmith/heg
To install HEG ina subdirectory ofthe current directory, just press the ENTER key.
Enter the HEG directory path:
WARNING: Directory /home/palwe/app/heg/heg already exists. Proceeding with install may overwrite existing files.
Proceed with install into /home/palwe/app/heg/heg? [y/n] y .....Moving heg.tar to /home/palwe/app/heg/heg .....Untarring heg.tar
******* -- Untar executed successfully! --
Where is your java bin directory located?
IMPORTANT NOTE: Give an absolute path, without special characters. For example: /usr/java/bin
Enter the path to your java bin directory: /home/palwe/java/jdk1.8.0_461/bin
You will be able to run HEG fromthecommandline, butyoumay have problems withthe HEG GUI. After installtion is completed, try running the HEG shell script inthe HEG bin directory. If the GUI does not appear, make sure Java is installed onyoursystem. Then locate the Java bin directoryand reinstall the HEG.
Please enter a username to be used internally by HEG, (e.g. BOB): BOB
***************************************************************** * Congratulations! You have successfully installed * * HDF-EOS To GeoTIFF Conversion Tool (HEG) v2.15 Build 9.8onyoursystem! * *****************************************************************
To start HEG, type "HEG"atthecommandlineinthe following directory: /home/palwe/app/heg/heg/bin/