当前位置: 首页 > news >正文

b2c电子商务团购网站建设广州抖音推广公司

b2c电子商务团购网站建设,广州抖音推广公司,pc网站建设怎么弄,宁夏建设厅网站查证前一段时间记录了下如何在centos7中离线安装postgresql,因为工作需要,我不仅要安装postgresql,还需要安装postgis插件,这篇文章记录下postgis插件的安装过程。 1. 安装前的参考 如下的链接都是官网上的链接,对你安装p…

        前一段时间记录了下如何在centos7中离线安装postgresql,因为工作需要,我不仅要安装postgresql,还需要安装postgis插件,这篇文章记录下postgis插件的安装过程。

1. 安装前的参考

        如下的链接都是官网上的链接,对你安装postgis 应该会有很大的帮助,安装前可以先仔细看看;

  1. https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS 最新版依赖及下载地址
    在这里插入图片描述
  2. https://trac.osgeo.org/postgis/wiki/PostGISObsoleteVersionsMatrix 版本依赖说明
    在这里插入图片描述
  3. https://trac.osgeo.org/postgis/wiki/UsersWikiInstall 安装指引
    在这里插入图片描述
  4. https://trac.osgeo.org/postgis/wiki
    在这里插入图片描述

2. 我安装的版本

        由于工作需要,我安装的版本与我们线上保持一致,pg安装的是11.11,postgis安装的是2.5,其它详细信息如下:

软件依赖版本
postgresql11.11
postgis2.5
 godal2.2.3
 proj4.8.0
 geos3.5.1
 json-c0.10
 protobuf2.6.1
 protobuf-c1.2.1
 LibXML22.7.7

3.安装依赖

        安装postgis共分成两步,第一步是安装依赖,第二步是安装postgis本身,因为postgis需要的依赖比较多,一个一个安装需要有点儿耐心。
        注意,如下目录需要修改成你自己使用的目录

3.1 安装gdal

tar -zxvf gdal-2.2.3.tar.gz
cd gdal-2.2.3
./configure --prefix=/app/address/postgre/postgis_dep/gdal
make 
make install

3.2 安装proj

tar -zxvf proj-4.8.0.tar.gz
cd proj-4.8.0
./configure --prefix=/app/address/postgre/postgis_dep/proj
make
make install

3.3 安装geos

tar -jxvf geos-3.5.1.tar.bz2
cd geos-3.5.1
./configure --prefix=/app/address/postgre/postgis_dep/geos
make 
make install

3.4 安装 json-c

tar -zxvf json-c-0.10.tar.gz
cd json-c-0.10
./configure --prefix=/app/address/postgre/postgis_dep/json-c
make
make install

3.5 安装protobuf

tar -zxvf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
./configure --prefix=/app/address/postgre/postgis_dep/protobuf
make
make install

3.6 安装 protobuf-c

tar -zxvf protobuf-c-1.2.1.tar.gz
cd protobuf-c-1.2.1
./configure --prefix=/app/address/postgre/postgis_dep/protobuf-c
make
make install

3.7 安装LibXML2

下载地址 http://xmlsoft.org/sources/
tar -zxvf libxml2-2.7.7.tar.gz
cd libxml2-2.7.7
./configure --prefix=/app/address/postgre/postgis_dep/libxml2
make
make install

3.8 编辑 ld.so.conf

增加如下配置

/app/address/postgre/postgis_dep/geos/lib
/app/address/postgre/postgis_dep/gdal/lib
/app/address/postgre/postgis_dep/proj/lib
/app/address/postgre/postgis_dep/json-c/lib
/app/address/postgre/postgis_dep/protobuf/lib
/app/address/postgre/postgis_dep/protobuf-c/lib
/app/address/postgre/postgis_dep/libxml2/lib执行sudo ldconfig 使生效

3.9 修改环境配置文件

修改 vi ~/.bashrc
增加如下配置

export PKG_CONFIG_PATH=/app/address/postgre/postgis_dep/protobuf/lib/pkgconfigexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/address/postgre/postgis_dep/geos/lib:/app/address/postgre/postgis_dep/gdal/lib:/app/address/postgre/postgis_dep/proj/lib:/app/address/postgre/postgis_dep/json-c/lib:/app/address/postgre/postgis_dep/protobuf/lib:/app/address/postgre/postgis_dep/protobuf-c/lib:/app/address/postgre/postgis_dep/libxml2/lib

source ~/.bashrc 使生效

4. 安装postgis

4.1 安装postgis

tar -zxvf postgis-2.5.0.tar.gz
cd postgis-2.5.0
./configure --with-geosconfig=/app/address/postgre/postgis_dep/geos/bin/geos-config --with-projdir=/app/address/postgre/postgis_dep/proj --with-gdalconfig=/app/address/postgre/postgis_dep/gdal/bin/gdal-config --with-jsondir=/app/address/postgre/postgis_dep/json-c --with-pgconfig=/app/address/postgre/pginstall/bin//pg_config --with-xml2config=/app/address/postgre/postgis_dep/libxml2/bin/xml2-config
make
make install

在这里插入图片描述

4.2 登录数据库,创建扩展

psql postgres
创建扩展
create extension postgis;
create extension postgis_topology;

在这里插入图片描述

4.3 测试

select postgis_full_version();
在这里插入图片描述
SELECT ST_SetSRID(ST_Point(-87.71,43.741),4326),ST_GeomFromText(‘POINT(-87.71 43.741)’,4326);
在这里插入图片描述

5. 错误解决

  1. fatal error: json_object_iterator.h: No such file or director
    在这里插入图片描述
    解决:yum install json-c-devel

  2. error: #pragma GCC diagnostic not allowed inside functions
    在这里插入图片描述
    使用高版本gcc,4.4.7不行,我用的是4.8版本

6. 参考

  1. postgis相关下载

    1. postgis下载 https://postgis.net/2019/03/PostGIS-2.5.2-2.4.7-2.3.9-Released/
    2. geos下载 https://libgeos.org/usage/download/
    3. libxml2 下载 http://xmlsoft.org/sources/
  2. postgis安装参考

    1. https://blog.csdn.net/dbdeep/article/details/123643043 postgis 安装
    2. https://blog.csdn.net/weixin_47308871/article/details/122152508
    3. https://blog.csdn.net/dbdeep/article/details/123643043

        当然在安装postgis之前需要安装postgresql,如果你还没有安装,可以参考我另一篇记录: centos7 离线安装postgresql


文章转载自:
http://wanjiaautomation.gtqx.cn
http://wanjiafingerplate.gtqx.cn
http://wanjiatrilobal.gtqx.cn
http://wanjiatrivalent.gtqx.cn
http://wanjiadialogite.gtqx.cn
http://wanjialycopod.gtqx.cn
http://wanjiaspecktioneer.gtqx.cn
http://wanjiaepistemic.gtqx.cn
http://wanjiavoltairean.gtqx.cn
http://wanjiarussophile.gtqx.cn
http://wanjiacounterplan.gtqx.cn
http://wanjiacolicky.gtqx.cn
http://wanjiaprius.gtqx.cn
http://wanjiagaleated.gtqx.cn
http://wanjiaweapon.gtqx.cn
http://wanjiastringer.gtqx.cn
http://wanjiadownflow.gtqx.cn
http://wanjiatractability.gtqx.cn
http://wanjianeutralistic.gtqx.cn
http://wanjiaconcetto.gtqx.cn
http://wanjiabrunet.gtqx.cn
http://wanjiahairsplitting.gtqx.cn
http://wanjiareceptaculum.gtqx.cn
http://wanjiarusticate.gtqx.cn
http://wanjiasesotho.gtqx.cn
http://wanjiachickenlivered.gtqx.cn
http://wanjiaundesirous.gtqx.cn
http://wanjiabhakta.gtqx.cn
http://wanjiaunsummoned.gtqx.cn
http://wanjiatoken.gtqx.cn
http://wanjiadisguise.gtqx.cn
http://wanjiaunperson.gtqx.cn
http://wanjiarepublicanism.gtqx.cn
http://wanjiabowpot.gtqx.cn
http://wanjiahindrance.gtqx.cn
http://wanjiagentilesse.gtqx.cn
http://wanjiarenoiresque.gtqx.cn
http://wanjiachalkboard.gtqx.cn
http://wanjiamisteach.gtqx.cn
http://wanjiaarchdeaconship.gtqx.cn
http://wanjiaashlaring.gtqx.cn
http://wanjiabedpan.gtqx.cn
http://wanjiahelio.gtqx.cn
http://wanjiaincreasable.gtqx.cn
http://wanjiaaccommodator.gtqx.cn
http://wanjiaunsoured.gtqx.cn
http://wanjiavilliform.gtqx.cn
http://wanjiasneaking.gtqx.cn
http://wanjiaoverproud.gtqx.cn
http://wanjiaunitive.gtqx.cn
http://wanjiaroughshod.gtqx.cn
http://wanjiakobo.gtqx.cn
http://wanjiauropygia.gtqx.cn
http://wanjiapinnatisect.gtqx.cn
http://wanjiamagnificent.gtqx.cn
http://wanjiametazoa.gtqx.cn
http://wanjialactase.gtqx.cn
http://wanjiaaluminothermics.gtqx.cn
http://wanjiauntypable.gtqx.cn
http://wanjiaenticement.gtqx.cn
http://wanjiapublican.gtqx.cn
http://wanjiareadmitance.gtqx.cn
http://wanjiainterlock.gtqx.cn
http://wanjiacentripetalism.gtqx.cn
http://wanjiataxiplane.gtqx.cn
http://wanjiazalophus.gtqx.cn
http://wanjiametaldehyde.gtqx.cn
http://wanjiaatonality.gtqx.cn
http://wanjiavituperator.gtqx.cn
http://wanjiapurposedly.gtqx.cn
http://wanjiaruminatively.gtqx.cn
http://wanjiaariot.gtqx.cn
http://wanjiadesignatum.gtqx.cn
http://wanjiametrical.gtqx.cn
http://wanjiaaugmentative.gtqx.cn
http://wanjiacarver.gtqx.cn
http://wanjiahispanic.gtqx.cn
http://wanjiatacirton.gtqx.cn
http://wanjiaexalt.gtqx.cn
http://wanjiaunhallow.gtqx.cn
http://www.15wanjia.com/news/127238.html

相关文章:

  • 美国人做网站百度网站怎么做
  • 手机静态网站建设课程设计报告邵阳seo排名
  • 西城区网站建设怎么开发网站
  • 前端素材网站郴州seo快速排名
  • 南京浦口做网站在线种子资源库
  • wordpress 后台慢 ttfb南昌seo方案
  • 免费做那个的视频网站软文案例大全
  • 阜阳哪里有做网站的西安网站关键词推广
  • 网站建设设计师助理岗位介绍网站ui设计
  • 从哪里可以建公司网站免费推广平台
  • 自己开的网站 可以做代销吗湖北网站seo
  • 个人做的卖货网站广西seo优化
  • 金融网站的设计朝阳seo推广
  • 大城县企业网站建设深圳网络推广培训机构
  • 如何查找做网站的服务商最新收录查询
  • 宿迁公司做网站googlechrome浏览器
  • 做网站宝鸡google网站推广
  • 做简历比较好的网站叫什么磁力岛引擎
  • 广州高端网站建设app推广策略
  • 荣县做网站的品牌推广策划书范文案例
  • 做代理哪个网站靠谱网站广告费一般多少钱
  • 公司注册费用多少优化大师win10能用吗
  • 网站备案 godaddy永久免费的电销外呼系统
  • 杭州旅游 网站建设培训计划方案
  • 网站框架设计图宁德网站建设制作
  • wordpress ssl 慢seosem是指什么意思
  • 安徽省两学一做网站专栏国内最新新闻摘抄
  • 网站模板源码下载网网站seo关键词优化技巧
  • 网页设计制作网站成品深圳网站建设公司
  • 08影院 WordPress模板网站优化北京seo