Intro:
The following was done on a RHEL 6.9 32bit
OS.
I installed the oracle (not openjdk) version of JRE
rpm using the
rpm -Uvh
command.
I then built a package using rpmbuild
that requires libjvm.so
which is provided by the oracle JRE and verified this using the command.
rpm -ql jre1.8.0_111-1.8.0_111-fcs.i586
Problem:
However, when I go to install the rpm
I built or use the command rpm -q libjvm.so
I am getting told that libjvm.so
is not installed.
I know I can put in the spec
file for my rpm
AutoReqProv: no
to get around the dependency issue, however, that does not seem like good practice and I have also rebuilt the rpm database to no avail.
Question:
Thus I am left pondering and trying to solve, how the jre rpm says it provides libjvm.so
yet the RPM database keeps saying that the dependency libjvm.so
is not installed. Any ideas?
EDIT
The JRE rpm also provides the following
jaxp_parser_impl
xml-commons-apis
java
java-1.8.0
java-fonts
jre
jre-1.8.0
jre1.8.0_111 = 1.8.0_111-fcs
rpm -ql
lists the files;rpm -q --provides ...
will show whether it "provides" thelibjvm.so
. For packages inyum
you can also search viayum whatprovides '*/libjvm.so*'
– thrig Jun 8 '17 at 15:07libjvm.so
, hence the error. – thrig Jun 8 '17 at 16:00