asdf-java icon indicating copy to clipboard operation
asdf-java copied to clipboard

No such file or directory happend when I installed asdf by Homebrew

Open kackey0-1 opened this issue 3 years ago • 0 comments

Issue

No such file or directory happend when I installed asdf through brew

➜  java asdf install java corretto-17.0.4.9.1 
/Users/xxxxx/.asdf/plugins/java/bin/install: line 3: /Users/xxxxx/.asdf/lib/utils.bash: No such file or directory
##################################################################################################################################################################################################### 100.0%
amazon-corretto-17.0.4.9.1-macosx-aarch64.tar.gz
amazon-corretto-17.0.4.9.1-macosx-aarch64.tar.gz: OK
/Users/xxxxx/.asdf/plugins/java/bin/install: line 130: get_asdf_config_value: command not found

How to resolve

load utils.bash from where it located.

source "${ASDF_DIR:-$(dirname $(dirname $(cut $' ' -f 2 "$(which asdf)" | tail -n 1 | sed -e 's/"//g')))}/lib/utils.bash"

kackey0-1 avatar Sep 25 '22 01:09 kackey0-1