博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RHELServer6.2下编译GDAL和mysql和proj4支持
阅读量:7122 次
发布时间:2019-06-28

本文共 3731 字,大约阅读时间需要 12 分钟。

系统信息:Red Hat Enterprise Linux Server release 6.2 (Santiago)

编译器:

[geohpc@mgt ~]$ gcc -vUsing built-in specs.Target: x86_64-redhat-linuxConfigured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linuxThread model: posixgcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)

1、编译proj-4.8.0

./configure --prefix=/home/geohpc/Documents/myname/installdir/proj480 --without-jni
make make install make clean

2、编译GDAL-1.9.0

./configure --prefix=/home/geohpc/Documents/myname/installdir/gdal190 --with-mysql=/data/mysql/bin/mysql_config --with-static-proj4=/home/geohpc/Documents/myname/installdir/proj480 或者:
CXXFLAGS=-Wl,rpath,'$ORIGIN' ./configure --prefix=/home/geohpc/Documents/myname/installdir/gdal190 --with-mysql=/data/mysql/bin/mysql_config --with-static-proj4=/home/geohpc/Documents/myname/installdir/proj480
GDAL is now configured for x86_64-unknown-linux-gnu  Installation directory:    /home/geohpc/Documents/myname/installdir/gdal190  C compiler:                gcc -g -O2  C++ compiler:              g++ -g -O2  LIBTOOL support:           yes  LIBZ support:              external  LIBLZMA support:           no  GRASS support:             no  CFITSIO support:           no  PCRaster support:          internal  LIBPNG support:            external  GTA support:               no  LIBTIFF support:           internal (BigTIFF=yes)  LIBGEOTIFF support:        internal  LIBJPEG support:           internal  8/12 bit JPEG TIFF:        yes  LIBGIF support:            internal  OGDI support:              no  HDF4 support:              no  HDF5 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  MSG support:               no  GRIB support:              yes  EPSILON support:           no  WebP support:              no  cURL support (wms/wcs/...):yes  PostgreSQL support:        no  MySQL support:             yes  Ingres support:            no  Xerces-C support:          no  NAS support:               no  Expat support:             yes  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  SpatiaLite support:        no  DWGdirect support          no  INFORMIX DataBlade support:no  GEOS support:              no  VFK support:               yes  Poppler support:           no  Podofo support:            no  OpenCL support:            no  Armadillo support:         no  FreeXL support:            no  SWIG Bindings:          no  Statically link PROJ.4:    yes  enable OGR building:       yes  enable pthread support:    yes  enable POSIX iconv support:yes  hide internal symbols:     no
makemake installmake clean

  3、添加expat支持(解析XML、GML等)

--with-expat=/usr/local/expat_install_dir

 

 

 

 

 

 

转载地址:http://vsxel.baihongyu.com/

你可能感兴趣的文章
学习笔记第二十二节课
查看>>
Rsync+Inotify 实时备份
查看>>
如何成为一名优秀的测试工程师(QA)——持续更新中
查看>>
分手后,小伙怒用Python爬取上万空姐照片,赢取校花选举大赛!
查看>>
mybatis和hibernate
查看>>
Angularjs进阶笔记(2)-自定义指令中的数据绑定
查看>>
Consul 与外部服务
查看>>
磁盘体系结构图
查看>>
【Zabbix】Zabbix触发器的告警原理及创建方法
查看>>
阿里云 Aliplayer高级功能介绍(五):多语言
查看>>
新手怎么通过网络推广引流
查看>>
find一些常用参数的例子
查看>>
PCB设计中的问题整理(三)
查看>>
redhat手动离线安装nginx遇到的问题openssl
查看>>
varnish应用
查看>>
FOSCommentBundle功能包:基于ACL安全添加角色
查看>>
软件包管理rpm使用
查看>>
Linux下Python连接MySQL异常
查看>>
Cisco Nexus 1000v Recommendation
查看>>
Exchange 常见问题之三
查看>>