gpt4 book ai didi

linux - FreeBSD 终端找不到 sdk 命令

转载 作者:太空宇宙 更新时间:2023-11-04 12:20:36 28 4
gpt4 key购买 nike

我想在我的 freebsd 系统上使用 kotlin 语言。我用这个命令安装了 sdkman:

 $curl -s "https://get.sdkman.io" | bash

在那之后,我写那个命令

sdk install kotlin

但终端不执行 sdk 命令。找不到 sdk 命令。我该怎么办,我删除了两次sdkman并安装,但我无法成功

最佳答案

您可以遵循输出的建议:

Please open a new terminal, or run the following in the existing one:

source "/home/user/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

sdk help

Enjoy!!!

对我来说,“source”命令工作正常:

[user@host ~]$ source /home/user/.sdkman/bin/sdkman-init.sh
[user@host ~]$ sdk
==== BROADCAST =================================================================
* 07/09/17: Gradle 4.2-rc-1 released on SDKMAN! #gradle
* 07/09/17: Groovy 2.6.0-alpha-1 released on SDKMAN! #groovylang
* 30/08/17: Kotlin 1.1.4-3 released on SDKMAN! #kotlin
================================================================================

Usage: sdk <command> [candidate] [version]
sdk offline <enable|disable>

commands:
install or i <candidate> [version]
uninstall or rm <candidate> <version>
list or ls [candidate]
use or u <candidate> [version]
default or d <candidate> [version]
current or c [candidate]
upgrade or ug [candidate]
version or v
broadcast or b
help or h
offline [enable|disable]
selfupdate [force]
flush <candidates|broadcast|archives|temp>

candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
use list command for comprehensive list of candidates
eg: $ sdk list

version : where optional, defaults to latest stable if not provided
eg: $ sdk install groovy

[user@host ~]$ type sdk
sdk is a function
sdk ()
...

我打开了新的终端,没有“source”命令也能正常工作。我的名字:

uname -a
FreeBSD host 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r321414: Mon Jul 24 21:41:54 MSK 2017 user@host:/usr/obj/usr/src/sys/GENERIC amd64

如果仍然存在任何问题,请分享更多详细信息(命令输出,“type sdk”,您的环境详细信息,包括桌面环境版本和配置)。

关于linux - FreeBSD 终端找不到 sdk 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46136266/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com