Opened 2 years ago
Last modified 10 months ago
#66041 new defect
openjdk11-bootstrap fails to install as a non-root user
Reported by: | AgilentGCMS | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | usersxx, cooljeanius (Eric Gallager) | |
Port: | openjdk11-bootstrap |
Description
I have to install and run macports as a non-root user on a work laptop. The port openjdk-bootstrap fails because it tries to create a folder in /Library
instead of the user's library folder. Specifically,
---> Fetching distfiles for openjdk11-bootstrap ---> Attempting to fetch openjdk-11_osx-x64_bin.tar.gz from https://download.java.net/java/ga/jdk11/ ---> Verifying checksums for openjdk11-bootstrap ---> Extracting openjdk11-bootstrap ---> Configuring openjdk11-bootstrap ---> Building openjdk11-bootstrap ---> Staging openjdk11-bootstrap into destroot Warning: openjdk11-bootstrap installs files outside the common directory structure. ---> Installing openjdk11-bootstrap @11_1 ---> Activating openjdk11-bootstrap @11_1 Error: Failed to activate openjdk11-bootstrap: can't create directory "/Library/Java/JavaVirtualMachines/openjdk11-bootstrap": permission denied
Attachments (1)
Change History (5)
Changed 2 years ago by AgilentGCMS
comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 2 years ago by AgilentGCMS
Why is that? Isn't it enough for 'java' and 'javac' to be in the PATH? Are you saying that java can't be installed in a custom location on a mac?
comment:3 Changed 2 years ago by AgilentGCMS
To be completely clear, openjdk-bootstrap got pulled in when I tried installing pdftk-java
. I actually already have java installed in /Library/Java/JavaVirtualMachines
. Is there any way to tell macports to just use that instead of trying to install openjdk-bootstrap
?
comment:4 Changed 10 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
Note: See
TracTickets for help on using
tickets.
How would you suggest to fix this? Java must be installed into /Library/Java/JavaVirtualMachines in order to work.