On 08/25/2018 08:32 AM, John Le Brasseur wrote:
Hi.
I don't know why I tried to install JAVA.
Quite difficult actually.

Page:

Beyond Linux® From Scratch - Version 2018-08-23
Chapter 13. Programming
http://www.linuxfromscratch.org/blfs/view/svn/general/ojdk-conf.html
(I actually started this a week ago when this was 8.2, it is now 8.3)

Step:
/usr/sbin/make-ca -g --force &&
ln -sfv /etc/ssl/java/cacerts.jks /opt/jdk/lib/security/cacerts

Result for most certificates:
e.g.
Certificate:  SZAFIR ROOT CA2
Keyhash:      fe8a2cd8
Added to GnuTLS certificate bundle.
/opt/jdk/bin/keytool: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory /opt/jdk/bin/keytool: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

All 'libjli.so' but I suspect a deeper problem.

Details:
ls -l /opt/OpenJDK-10.0.1+10-bin/lib/jli/
total 76
-rw-r--r-- 1 root root 75104 Apr 24 14:40 libjli.so


I believe I have set up all the dependencies.
I believe I have executed all the steps correctly
(I have also rerun some steps to check for errors.)

Clearly I have an error.

I don't actually want to ask for help because I don't think I was concentrating hard enough and I've probably done something or omitted something central to the process.
Nevertheless.

Is there an obvious fault here?

Hard to say. On the surface, it looks as simple as JAVA_HOME not being set:
'. /etc/profile'

If that's not it, you can always roll back to the binary install to troubleshoot:
'ln -nsfv OpenJDK-10.0.1+10-bin /opt/jdk'

--DJ

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to