I was trying to install PostGIS on CentOS7 (x64) based machine.
# sudo yum install postgis2_95 postgis2_95-client
But, got this error:
Error: Package: grass-libs-6.4.4-7.el7.x86_64 (@epel) Requires: libgeos-3.4.2.so()(64bit) Removing: geos-3.4.2-2.el7.x86_64 (@epel) libgeos-3.4.2.so()(64bit) Updated By: geos-3.5.0-1.rhel7.x86_64 (pgdg95) ~libgeos-3.5.0.so()(64bit) Available: geos-3.4.2-1.rhel7.x86_64 (pgdg94) libgeos-3.4.2.so()(64bit) Available: geos-3.2.2-2.el6.x86_64 (elgis) ~libgeos-3.2.2.so()(64bit) Available: geos-3.3.0-1.el6.x86_64 (elgis) ~libgeos-3.3.0.so()(64bit) Available: geos-3.3.1-2.el6.x86_64 (elgis) ~libgeos-3.3.1.so()(64bit) Available: geos-3.3.6-1_0.el6.x86_64 (elgis) ~libgeos-3.3.6.so()(64bit) Available: geos-3.3.8-2.el6.x86_64 (elgis) ~libgeos-3.3.8.so()(64bit)
Error: Package: grass-6.4.4-7.el7.x86_64 (@epel) Requires: libgeos-3.4.2.so()(64bit) Removing: geos-3.4.2-2.el7.x86_64 (@epel) libgeos-3.4.2.so()(64bit) Updated By: geos-3.5.0-1.rhel7.x86_64 (pgdg95) ~libgeos-3.5.0.so()(64bit) Available: geos-3.4.2-1.rhel7.x86_64 (pgdg94) libgeos-3.4.2.so()(64bit) Available: geos-3.2.2-2.el6.x86_64 (elgis) ~libgeos-3.2.2.so()(64bit) Available: geos-3.3.0-1.el6.x86_64 (elgis) ~libgeos-3.3.0.so()(64bit) Available: geos-3.3.1-2.el6.x86_64 (elgis) ~libgeos-3.3.1.so()(64bit) Available: geos-3.3.6-1_0.el6.x86_64 (elgis) ~libgeos-3.3.6.so()(64bit) Available: geos-3.3.8-2.el6.x86_64 (elgis) ~libgeos-3.3.8.so()(64bit) You could try --skip-broken to work around the problem.
Not nice! Any help would be highly appreciated?
Jibran
On 09/26/2016 06:41 AM, Jibran Khan wrote:
I was trying to install PostGIS on CentOS7 (x64) based machine.
# sudo yum install postgis2_95 postgis2_95-client
But, got this error:
Error: Package: grass-libs-6.4.4-7.el7.x86_64 (@epel)
Requires: libgeos-3.4.2.so()(64bit)
Removing: geos-3.4.2-2.el7.x86_64 (@epel) libgeos-3.4.2.so()(64bit)
Updated By: geos-3.5.0-1.rhel7.x86_64 (pgdg95) ~libgeos-3.5.0.so()(64bit)
Available: geos-3.4.2-1.rhel7.x86_64 (pgdg94) libgeos-3.4.2.so()(64bit)
Available: geos-3.2.2-2.el6.x86_64 (elgis)
~libgeos-3.2.2.so()(64bit) Available: geos-3.3.0-1.el6.x86_64 (elgis)
~libgeos-3.3.0.so()(64bit) Available: geos-3.3.1-2.el6.x86_64 (elgis)
~libgeos-3.3.1.so()(64bit) Available: geos-3.3.6-1_0.el6.x86_64 (elgis)
~libgeos-3.3.6.so()(64bit) Available: geos-3.3.8-2.el6.x86_64 (elgis)
~libgeos-3.3.8.so()(64bit)
...
Not nice! Any help would be highly appreciated?
Looks like you are mixing several repositories (epel, elgis, pgdg94). Unless there are specific commitments to maintaining compatibility among repositories, this generally leads to problems like the ones you are seeing.
You can try using yum-priorities and playing with different priorities for the different repos, but this is difficult and error prone as well.
Thanks for your feedback!
I am new to RHEL (CentOS 7). Have been googling over the Internet to resolve the problem but so far still struggling. I have installed PostgreSQL already and now trying to install PostGIS. I see that EPEL already contains GEOS package and I don't need EL GIS repo. Based on your comment, do you suggest to remove repositories which are not required?
Why I messed up with so many unwanted repositories because when I tried to install PostGIS using this link:
http://www.postgresonline.com/journal/archives/362-An-almost-idiots-guide-to...
I ran into problems, then somehow I used other links of PostgreSQL 9.4 which was not realistic somehow.
epel-devel@lists.fedoraproject.org