首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在REDHAT 7上用MBTILES驱动程序编译/安装GDAL2.2.x

在REDHAT 7上用MBTILES驱动程序编译/安装GDAL2.2.x
EN

Server Fault用户
提问于 2018-04-26 14:11:29
回答 1查看 1.1K关注 0票数 0

我正在尝试使用MBTiles驱动程序来获取RHEL7实例。

我已经下载了源代码,并试图用MBTILES编译它。这是我第一次从源代码中自己编译一些东西。由于某些原因,我传递的参数不起作用。

我使用这个程序:

代码语言:javascript
复制
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 3选项和其他选项,但是它们没有被添加到构建中,我想知道为什么我已经安装了依赖项libspacialite、sqlite3、geos .

在完成./配置之后,我将得到一个输出,状态为sqlite3,而spatialite不会被添加?

代码语言:javascript
复制
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驱动程序?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2018-04-26 15:02:10

要从源代码编译程序,在RHEL系统上,您需要安装相应的-devel包。例如,对于SQLite支持,您需要安装sqlite-devel

代码语言:javascript
复制
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中,所以如果这足以供您使用,那么您可能根本不需要自己编译它。

代码语言:javascript
复制
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.
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/909572

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档