Rhel7
在 REDHAT 7 上使用 MBTILES 驅動程序編譯/安裝 GDAL 2.2.x
我正在嘗試使用在 RHEL7 實例上工作的 MBTiles 驅動程序來獲取 GDAL。
我已經下載了原始碼並試圖用 MBTILES 編譯它。這是我第一次從原始碼自己編譯一些東西。由於某種原因,我傳遞的參數不起作用。
我使用這個程序:
cd /tmp wget http://download.osgeo.org/gdal/2.2.1/gdal-2.2.1.tar.gz tar zxvf gdal-2.2.1.tar.gz cd gdal-2.2.1/ ./configure --prefix=/usr --libdir=/usr/lib64 --with-sqlite3=yes --with-spatialite=yes --with-ogr=yes --with-curl=/usr/bin/curl-config make -j4 sudo make install
當我送出配置行時,我得到了一些關於將啟用什麼以及不啟用什麼的輸出。雖然我設置了 –with-sqlite3 選項和其他選項,但它們沒有添加到建構中我想知道為什麼我安裝了依賴項 libspacialite、sqlite3、geos …
在 ./configure 完成處理後,我得到這個輸出表明 sqlite3 和 spatialite 不會被添加???
GDAL is now configured for x86_64-pc-linux-gnu Installation directory: /usr C compiler: gcc -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 C++ compiler: g++ -std=gnu++11 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 C++11 support: yes LIBTOOL support: yes LIBZ support: external LIBLZMA support: no cryptopp support: no GRASS support: no CFITSIO support: no PCRaster support: internal LIBPNG support: internal DDS support: no GTA support: no LIBTIFF support: internal (BigTIFF=yes) LIBGEOTIFF support: internal LIBJPEG support: internal 12 bit JPEG: yes 12 bit JPEG-in-TIFF: yes LIBGIF support: internal OGDI support: no HDF4 support: no HDF5 support: no Kea support: no NetCDF support: no Kakadu support: no JasPer support: no OpenJPEG support: no ECW support: no MrSID support: no MrSID/MG4 Lidar support: no JP2Lura support: no MSG support: no GRIB support: yes EPSILON support: no WebP support: no cURL support (wms/wcs/...):yes PostgreSQL support: no MRF support: yes MySQL support: no Ingres support: no Xerces-C support: no NAS support: no Expat support: no libxml2 support: no Google libkml support: no ODBC support: no PGeo support: no FGDB support: no MDB support: no PCIDSK support: internal OCI support: no GEORASTER support: no SDE support: no Rasdaman support: no DODS support: no SQLite support: no PCRE support: yes SpatiaLite support: no RasterLite2 support: no Teigha (DWG and DGNv8): no INFORMIX DataBlade support:no GEOS support: no SFCGAL support: no QHull support: internal Poppler support: no Podofo support: no PDFium support: no OpenCL support: no Armadillo support: no FreeXL support: no SOSI support: no MongoDB support: no
如果有人知道我如何獲得 MBTiles 驅動程序?
要從原始碼編譯程序,在 RHEL 系統上,您需要安裝相應的
-devel
軟體包。例如,對於 SQLite 支持,您需要安裝sqlite-devel
.Name : sqlite-devel Arch : x86_64 Version : 3.7.17 Release : 8.el7 Size : 104 k Repo : rhel-7-server-rpms/7Server/x86_64 Summary : Development tools for the sqlite3 embeddable SQL database engine URL : http://www.sqlite.org/ License : Public Domain Description : This package contains the header files and development : documentation for sqlite. If you like to develop programs using : sqlite, you will need to install sqlite-devel.
對於那裡的輸出中不存在的每個附加功能也是如此。花費一些時間
yum search
應該-devel
為他們中的大多數人提供包裹。但是您需要啟用可選通道和 EPEL 才能獲得其中的一些。還要記住,舊版本的 GDAL 在 EPEL 中,所以如果這足以供您使用,那麼也許您根本不需要自己編譯它。
Name : gdal Arch : x86_64 Version : 1.11.4 Release : 3.el7 Size : 276 k Repo : epel/x86_64 Summary : GIS file format library URL : http://www.gdal.org License : MIT Description : Geospatial Data Abstraction Library (GDAL/OGR) is a cross platform : C++ translator library for raster and vector geospatial data : formats. As a library, it presents a single abstract data model to : the calling application for all supported formats. It also comes : with a variety of useful commandline utilities for data : translation and processing. : : It provides the primary data access engine for many applications. : GDAL/OGR is the most widely used geospatial data access library.