Alpine install SDKMAN!
Install
Installing SDKMAN! on UNIX-like platforms is as easy as ever. SDKMAN! installs smoothly on Mac OSX, Linux, Cygwin, Solaris and FreeBSD. We also support Bash and ZSH shells.
// Simply open a new terminal and enter
$ curl -s "https://get.sdkman.io" | bash
or
$ curl -s "https://get.sdkman.io" | zsh
// Follow the instructions on-screen to complete installation.
Next, open a new terminal or enter
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
// Lastly, run the following code snippet to ensure that installation succeeded
$ sdk version
// If all went well, the version should be displayed. Something like
sdkman 5.0.0+51
Problem
You may encounter a problem below
// bash [$ curl -s "https://get.sdkman.io" | bash]
...
Looking for a previous installation of SDKMAN...
Looking for unzip...
Looking for zip...
Not found.
======================================================================================================
Please install zip on your system using your favourite package manager.
Restart after installing zip.
======================================================================================================
...
or
// zsh [$ curl -s "https://get.sdkman.io" | zsh]
...
Extract FILEs from ZIP archive
-l List contents (with -q for short form)
-n Never overwrite files (default: ask)
-o Overwrite
-j Do not restore paths
-p Print to stdout
-q Quiet
-x FILE Exclude FILEs
-d DIR Extract into DIR
Downloaded zip archive corrupt. Are you connected to the internet?
If problem persists, please ask for help on https://gitter.im/sdkman/user-issues
...
Solution
// install zip first
# apk add zip

本文档指导如何在Alpine Linux上解决安装SDKMAN!时遇到的问题,并提供了详细的解决方案。
754

被折叠的 条评论
为什么被折叠?



