gpt4 book ai didi

scala - 如何在 Ubuntu 中卸载 SBT?

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:07 43 4
gpt4 key购买 nike

我当前安装的 SBT 已损坏,我想重新安装它。问题是我没有通过 sudo apt-get 命令安装 SBT。我按照这里的教程进行操作:Functional Programming Principles in Scala | Coursera .

我从网页上遵循的说明:

那么我首先要如何在 Ubuntu 上卸载 SBT?

我尝试运行 sudo apt-get remove sbt 但它没有用。这些是 sudo apt-get remove sbt 的结果:

$ sudo apt-get remove sbtReading package lists... DoneBuilding dependency tree       Reading state information... DonePackage 'sbt' is not installed, so not removedThe following packages were automatically installed and are no longer required:  ax25-node libax25 libossp-uuid16 openbsd-inetdUse 'apt-get autoremove' to remove them.0 upgraded, 0 newly installed, 0 to remove and 324 not upgraded.

最佳答案

Open the file ~/.bashrc in an editor (create it if it doesn’t exist) and add the following line export PATH=/PATH/TO/YOUR/sbt/bin:$PATH

你的 sbt/bin 路径已经存储在你的 ~/.bashrc 文件中。如果您知道 sbt/bin 的路径,则可以从解压它的位置使用 sudo rm -r ./sbt/ 从终端手动删除 sbt 目录及其内容。

然后从 ~/.bashrc 文件中删除过时的 export PATH=/PATH/TO/YOUR/sbt/bin:$PATH 行。

关于scala - 如何在 Ubuntu 中卸载 SBT?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25323783/

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