Alpine: install SDKMAN!

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

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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值