SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I run into this when installing mysql-workbench with sbopkg:
Code:
Using bundled Antlr C runtime
[mysql] Generating parser files...
Selected MySQL parser
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
CMake Error at library/parsers/grammars/CMakeLists.txt:9 (message):
[mysql] Generating parsers files failed with result='2'
My path when logged as root contains /usr/lib64/java/bin and /usr/lib64/java/jre/bin and I can execute javac when logged as root or after sudo -i .
Update: I have tried to run Hello World in Java, compiled alright but same problem when run:
Quote:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
Last edited by Bad Blue Bull; 10-16-2019 at 12:49 PM.
Ponce: I've downloaded jdk from the Oracle site and put it somewhere in /tmp/Sbo/ where installer wanted it then I made installation go on. Now I see Java isn't running, it's not just problem with mysql-workbench installer.
Yes, I've logged out and logged in and rebooted also because this battle has been going on for days.
Last edited by Bad Blue Bull; 10-16-2019 at 01:02 PM.
Ponce: OK, I created some mess with ld.so.conf in drastic attempt to make it working, now I've deleted lines you told, now I have this error when run Java:
Code:
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
If I add /usr/lib64/java/lib/amd64/jli to ld.so.conf I have "Error: could not find libjava.so" then, if I delete it I have "java: error while loading shared libraries: libjli.so..."
Last edited by Bad Blue Bull; 10-16-2019 at 01:20 PM.
remove the java package you built and build a new jdk package using the SlackBuild from SBo (download the SlackBuild files from the link I gave you: refer to the howto).
then install the resulting package, logout and login again.
JDK seems to be alright because I can compile helloworld. It's listed by sbopkg -p. The problem seems to be with JRE. I have created a symlink for libjli at /usr/lib64 but now java fails to find libjava.so
OK, it works when I run /usr/lib64/java/bin/java, not /usr/bin/java
Where did you get a /usr/bin/java? I don't have that on my system at all. The java provided by the jdk should be the /usr/lib64/java/bin/java and once you log out and log back in, it adds that location to your $PATH.
bossmadrigal: I have no idea how it happened. I've just removed /usr/bin/java.
I've found a bug reported in 2003 https://bugs.java.com/bugdatabase/vi...bug_id=4876186 it says not to use hard links and use symlinks if needed.
No idea how a hard link at /usr/bin/java was created. Installing MySQL-Workbench SBopkg downloaded some rubbish instead of JDK and the error was given, I've downloaded JDK from the Oracle's site and placed it at /tmp/SBo/package-jdk or something like that, chose "Retry" and installation went on. Then I've downloaded JRE and installed it with java.SlackBuild
Last edited by Bad Blue Bull; 10-16-2019 at 05:03 PM.
In Freenode ##slackware he told us that his shell is zsh, not bash, which is the likely cause of his issue (JAVA PATH is not getting set for instance).
Alien Bob: zsh has nothing to do with it, I have this in /etc/zprofile:
Code:
# Append any additional sh scripts found in /etc/profile.d/:
for profile_script in /etc/profile.d/*.sh ; do
if [ -x $profile_script ]; then
. $profile_script
fi
done
I have all the variables that /etc/profile.d/jdk.sh attempts to export set in my shell.
The problem occured because there was a hard link to java in /usr/bin/
Also I don't know why I have so many hard links...
Installing MySQL-Workbench SBopkg downloaded some rubbish instead of JDK and the error was given, I've downloaded JDK from the Oracle's site and placed it at /tmp/SBo/package-jdk or something like that, chose "Retry" and installation went on. Then I've downloaded JRE and installed it with java.SlackBuild
in the link on SBo I posted you earlier is written that JRE is packaged together with the jdk SlackBuild on SBo: why have you installed two different java versions?
that's why I asked you to remove the java stuff you have installed and just install jdk from SBo.
remember that, also if you are using sbopkg, you *have to* read the READMEs of the stuff you install from SBo.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.