/usr/lib64/jvm/java symlink
Tomasz Pala
gotar at polanet.pl
Sun May 15 11:57:27 CEST 2016
I'm trying to compile qgis using gdal:
/usr/bin/ld: warning: libjvm.so, needed by /usr/lib64/gcc/x86_64-pld-linux/5.3.0/../../../../lib64/libgdal.so, not found (try using -rpath or -rpath-link)
gdal.rpm requires libjvm.so, so I've installed the same java version it was
compiled with, i.e. openjdk8-jre-base; however libgdal.so uses
/usr/lib64/jvm/java path, which exists in openjdk8-jdk:
/usr/lib64/jvm/java -> openjdk8-8u72.b15
JRE contains only
openjdk8-jre -> openjdk8-8u72.b15/jre
symlink.
Something needs to be fixed: either
- gdal should require JDK package - overkill, or
- symlink should be moved to JRE, or
- symlink should be moved to some java-default package and this one
should be required by gdal,
- or anything you can propose, I'm not familiar with java.
The one suggestion I might make, is changing java symlink to:
/usr/lib64/jvm/java -> openjdk8-jre (without version/build/whatever this is)
to make sure, that JRE (e.g. openjdk8-jre) points to the same place in case
multiple versions are installed.
--
Tomasz Pala <gotar at pld-linux.org>
More information about the pld-devel-en
mailing list