我们刚刚启动了一个新的CentOS 7 VM,并开始为OSM切片服务器设置我们的服务器。尝试使用以下命令安装和配置PostgreSQL:
yum install postgresql94-server postgresql94-devel postgis2_94 postgis2_94-docs postgis2_94-utils pgrouting_94
我收到以下交易检查错误:
Transaction check error:
file /usr/pgsql-9.4/lib/liblwgeom.so from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/address_standardizer.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/address_standardizer.sql from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/address_standardizer_data_us.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/address_standardizer_data_us.sql from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/postgis.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/postgis_sfcgal.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/postgis_tiger_geocoder.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/postgis_tiger_geocoder.sql from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
file /usr/pgsql-9.4/share/extension/postgis_topology.control from install of postgis24_94-2.4.6-4.rhel7.x86_64 conflicts with file from package postgis22_94-2.2.7-1.rhel7.x86_64
我在这里想念什么?我了解错误表明,两个版本的Postgis 24 和 22 之间存在冲突,但是我将如何解决该冲突?
谢谢。
答案 0 :(得分:1)
我建议使用最新版本的PostgreSQL,因为对9.4的支持将在明年结束。
PostgreSQL社区将于2020年2月停止发布9.4.X版本系列的更新。鼓励用户尽快更新到较新的版本分支。
好吧,由于您似乎已经安装了postgis22_94-2.2.7-1.rhel7.x86_64
,并且想要使用其他版本,因此建议您在安装新版本之前删除不需要的版本。
另外,如果我没记错的话,实际上是打包了不同的PostgreSQL主版本,因此可以在同一台计算机上安装例如10和9.6,而不会发生冲突(因为二进制文件位于不同的目录中)。