安装、编译
https://www.gaia-gis.it/gaia-sins/freexl-2.0.0.zip
yum install -y minizip minizip-devel expat-devel
./configure --prefix=/usr/local/freexl-2.0.0
make && make install
环境变量
vi /etc/ld.so.conf/usr/local/freexl-2.0.0/libldconfig -v
GDAL编译
pg是可选项
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/gdal-3.6.2 \
-DPROJ_INCLUDE_DIR=/usr/local/proj-8.2.1/include -DPROJ_LIBRARY=/usr/local/proj-8.2.1/lib/libproj.so \
-DOGR_ENABLE_DRIVER_PG=ON \
-DPostgreSQL_INCLUDE_DIR=/usr/local/pg127/include \
-DPostgreSQL_LIBRARY=/usr/local/pg127/lib/libpq.so \
-DFREEXL_INCLUDE_DIR=/usr/local/freexl-2.0.0/include \
-DFREEXL_LIBRARY=/usr/local/freexl-2.0.0/lib/libfreexl.so