Alpine: install SDKMAN!

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IOIO_/article/details/84946257

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

https://sdkman.io/install

猜你喜欢

转载自blog.csdn.net/IOIO_/article/details/84946257
今日推荐