Thread: Missing dependencies for PostGIS (CentOS 7 / PostgreSQL 9.6 / PostGIS 2.3)
Missing dependencies for PostGIS (CentOS 7 / PostgreSQL 9.6 / PostGIS 2.3)
From
Guillaume Lelarge
Date:
Hi,
I've installed CentOS 7 from CentOS-7-x86_64-Minimal-2009.iso. And then I did:
# yum -y install epel-release
# yum update
# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# yum install -y postgresql96-server
# yum install -y postgresql96-contrib
# yum update
# yum install postgis23_96
And I got:
[...]
# yum -y install epel-release
# yum update
# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# yum install -y postgresql96-server
# yum install -y postgresql96-contrib
# yum update
# yum install postgis23_96
And I got:
[...]
---> Package postgis23_96.x86_64 0:2.3.7-1.rhel7 will be installed
--> Processing Dependency: proj49 for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Processing Dependency: libproj.so.12()(64bit) for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: proj49
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: libproj.so.12()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I'm a bit lost here. I have some proj packages but installing the main one didn't do me much good.
# yum search proj | grep "^proj"
proj.x86_64 : Cartographic projection software (PROJ.4)
proj-devel.x86_64 : Development files for PROJ.4
proj-epsg.x86_64 : EPSG dataset for PROJ.4
proj-nad.x86_64 : US and Canadian datum shift grids for PROJ.4
proj-static.x86_64 : Development files for PROJ.4
proj62.x86_64 : Cartographic projection software (PROJ)
proj62-debuginfo.x86_64 : Debug information for package proj62
proj62-devel.x86_64 : Development files for PROJ
proj62-static.x86_64 : Development files for PROJ
proj63.x86_64 : Cartographic projection software (PROJ)
[...]
Any idea on how to fix this? I'm pretty sure I forgot something to do but can't pinpoint what.
--> Processing Dependency: proj49 for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Processing Dependency: libproj.so.12()(64bit) for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: proj49
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: libproj.so.12()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I'm a bit lost here. I have some proj packages but installing the main one didn't do me much good.
# yum search proj | grep "^proj"
proj.x86_64 : Cartographic projection software (PROJ.4)
proj-devel.x86_64 : Development files for PROJ.4
proj-epsg.x86_64 : EPSG dataset for PROJ.4
proj-nad.x86_64 : US and Canadian datum shift grids for PROJ.4
proj-static.x86_64 : Development files for PROJ.4
proj62.x86_64 : Cartographic projection software (PROJ)
proj62-debuginfo.x86_64 : Debug information for package proj62
proj62-devel.x86_64 : Development files for PROJ
proj62-static.x86_64 : Development files for PROJ
proj63.x86_64 : Cartographic projection software (PROJ)
[...]
Any idea on how to fix this? I'm pretty sure I forgot something to do but can't pinpoint what.
Thanks.
--
Guillaume.
Re: Missing dependencies for PostGIS (CentOS 7 / PostgreSQL 9.6 / PostGIS 2.3)
From
Guillaume Lelarge
Date:
Le lun. 28 juin 2021 à 17:13, Guillaume Lelarge <guillaume@lelarge.info> a écrit :
--
Hi,I've installed CentOS 7 from CentOS-7-x86_64-Minimal-2009.iso. And then I did:
# yum -y install epel-release
# yum update
# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# yum install -y postgresql96-server
# yum install -y postgresql96-contrib
# yum update
# yum install postgis23_96
And I got:
[...]---> Package postgis23_96.x86_64 0:2.3.7-1.rhel7 will be installed
--> Processing Dependency: proj49 for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Processing Dependency: libproj.so.12()(64bit) for package: postgis23_96-2.3.7-1.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: proj49
Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
Requires: libproj.so.12()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
FWIW, I have no issue installing PostGIS 3.0. There's no 3.1 package (which I need), and the 2.3 package can't be installed.
Guillaume.
Re: Missing dependencies for PostGIS (CentOS 7 / PostgreSQL 9.6 / PostGIS 2.3)
From
Devrim Gündüz
Date:
Hi Guillaume, On Mon, 2021-06-28 at 17:13 +0200, Guillaume Lelarge wrote: > <snip> > # yum install postgis23_96 > > And I got: > > [...] > ---> Package postgis23_96.x86_64 0:2.3.7-1.rhel7 will be installed > --> Processing Dependency: proj49 for package: > postgis23_96-2.3.7-1.rhel7.x86_64 > --> Processing Dependency: libproj.so.12()(64bit) for package: > postgis23_96-2.3.7-1.rhel7.x86_64 > --> Finished Dependency Resolution > Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96) > Requires: proj49 > Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96) > Requires: libproj.so.12()(64bit) > You could try using --skip-broken to work around the problem > You could try running: rpm -Va --nofiles --nodigest That is (now was...) definitely a repo issue. Apologies. Fixed. You may need to clean yum metadata before trying again (yum clean metadata) Cheers, -- Devrim Gündüz Open Source Solution Architect, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachment
Re: Missing dependencies for PostGIS (CentOS 7 / PostgreSQL 9.6 / PostGIS 2.3)
From
Guillaume Lelarge
Date:
Hey Devrim,
Le mer. 30 juin 2021 à 04:26, Devrim Gündüz <devrim@gunduz.org> a écrit :
Hi Guillaume,
On Mon, 2021-06-28 at 17:13 +0200, Guillaume Lelarge wrote:
>
<snip>
> # yum install postgis23_96
>
> And I got:
>
> [...]
> ---> Package postgis23_96.x86_64 0:2.3.7-1.rhel7 will be installed
> --> Processing Dependency: proj49 for package:
> postgis23_96-2.3.7-1.rhel7.x86_64
> --> Processing Dependency: libproj.so.12()(64bit) for package:
> postgis23_96-2.3.7-1.rhel7.x86_64
> --> Finished Dependency Resolution
> Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
> Requires: proj49
> Error: Package: postgis23_96-2.3.7-1.rhel7.x86_64 (pgdg96)
> Requires: libproj.so.12()(64bit)
> You could try using --skip-broken to work around the problem
> You could try running: rpm -Va --nofiles --nodigest
That is (now was...) definitely a repo issue. Apologies.
And it now works. Thanks a lot, and no need for apologies ;-)
Fixed. You may need to clean yum metadata before trying again (yum
clean metadata)
FWIW, I didn't need that.
Have a good day!
--
Guillaume.