[gdal-dev] installing gdal in CentOS
neteler at osgeo.org
Sat May 9 14:09:14 PDT 2020
(bumping an older discussion, some success)
On Mon, Apr 8, 2019 at 10:32 AM Andrew C Aitchison
<andrew at aitchison.me.uk> wrote:
> On Fri, 5 Apr 2019, Markus Neteler wrote:
> > On Mon, Apr 1, 2019 at 11:17 PM Andrew C Aitchison
> >> On Mon, 1 Apr 2019, Markus Neteler wrote:
> >>> Now I am stuck at
> >>> ...
> >>> BUILD SUCCESSFUL
> >>> Total time: 10 seconds
> >>> + popd
> >>> + %mvn_artifact swig/java/build/maven/gdal-2.3.2.pom
> >>> swig/java/build/maven/gdal-2.3.2.jar
> >>> ~/build/BUILD/gdal-2.3.2-fedora
> >>> /var/tmp/rpm-tmp.R4QpDm: line 139: fg: no job control
> >>> error: Bad exit status from /var/tmp/rpm-tmp.R4QpDm (%build)
> >>> ....
> >> That is probably a bug in the rpm .spec file
> >> https://www.redhat.com/archives/rpm-list/2002-October/msg00271.html
> >> suggests that it is a % character being passed to the shell.
> > Thanks Andrew,
> > I made further attempts but I am stuck.
> > Maybe the Python-3 support needs to be kicked out as well?
> I only have RedHat/CentOS/SL 6, not 7 and
> grep -r py3_build /usr/lib/rpm
> shows nothing. Does py3_build exist in your rpm tree,
> or is it part of COPR ?
So, today I started a new attempt and was kind of successful by
modifying the GDAL 3.0.4 SPEC file for Centos 8, i.e. I have used the
official GDAL 3.0.4 SPEC file  and made the following changes:
- disabled JAVA and LaTeX support for EPEL8, due to (yet) missing dependencies
FWIW, this modified file I attached here:
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
More information about the gdal-dev