LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-08-2023, 11:20 PM   #1
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 161

Rep: Reputation: 21
JDK19; cannot execute: required file not found


Trying to install JDK19 (19.0.2) onto my RPi3 running SlackARM-current.
I've tried a Slackbuild; replacing the x86_64 binaries for aarch64 (I've tried both OpenJDK and Oracle JDK), and I've also tried the adoptopenjdk-17.0.4 package from https://sarpi.penthux.net/index.php?p=rpia64currentpkgs, and they all return...

"cannot execute: required file not found"

... when I try and run a java command, like, 'java'

I've tried tinkering with my JAVA_HOME, PATH an even LD_LIBRARY_PATH settings to no avail.
I've never encountered this before and I don't see any obvious cause of the problem.

Can someone suggest what might be going on and what my next course of action should be? I'd greatly appreciate it!
 
Old 03-09-2023, 02:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,673

Rep: Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816Reputation: 7816
First of all dropping in an error message like this is pointless, it contains no usable info. So please provide more details, like exactly what commands did you try (what did you download, from where), what was the response .... Exactly.
http://www.catb.org/~esr/faqs/smart-...html#beprecise
 
Old 03-09-2023, 10:18 AM   #3
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,625

Rep: Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346Reputation: 1346
Quote:
Originally Posted by skubik View Post
the adoptopenjdk-17.0.4 package from https://sarpi.penthux.net/index.php?p=rpia64currentpkgs, and they all return...

"cannot execute: required file not found"
The package is broken.

Code:
root@bladswede:~# patchelf --print-interpreter /usr/lib64/adoptopenjdk11.0.16.1/bin/java
/lib/ld-linux-aarch64.so.1
Slackware AArch64 only provides the linker in /lib64.

You can fix it though:
Code:
patchelf --set-interpreter /lib64/ld-linux-aarch64.so.1 /usr/lib64/adoptopenjdk11.0.16.1/bin/java
The JVM will run then, but I suspect there are other broken bits so you'd have to fix them all.

You could also just symlink the linker into /lib as a work-around, and it might make OpenJDK and the other stuff you tried work as well.
 
Old 03-09-2023, 11:37 PM   #4
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 161

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by drmozes View Post
You could also just symlink the linker into /lib as a work-around, and it might make OpenJDK and the other stuff you tried work as well.
I tried the other method with patchelf first and it worked; even applied it to every binary in java/bin.
Then I just tried symlinking /lib64/ld-linux-aarch64.so.1 into /lib, reinstalled fresh, unmodded binaries, and *voila*, it worked!

Thanks!
 
Old 03-10-2023, 04:04 PM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 2,123

Rep: Reputation: Disabled
compiled from source
openjdk-19.0.2.u7-aarch64-1mara.txz
openjre-19.0.2.u7-aarch64-1mara.txz

Last edited by sndwvs; 03-10-2023 at 04:13 PM.
 
  


Reply

Tags
jdk, raspberry pi, slackware aarch64


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 09:35 PM
.oui: cannot execute binary file .oui: cannot execute binary file .oui kazi9822 Linux - Server 18 09-28-2012 05:44 PM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 11:02 AM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-22-2007 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration