3

我正在我的 cloudera 发行版中安装 sbt。

  1. 我已经下载了 sbt.0.13.15
  2. 将文件移动到 /usr/local
  3. 然后我更新了配置文件 sudo nano profile 添加了 export PATH=$PATH:/usr/local/sbt/bin 保存文件并退出。
  4. 但是现在如果我发出“ sbt about ”命令,我会得到 sbt: command not found。

你能帮忙解决这个问题吗。

4

1 回答 1

0

一些建议:

  • 检查您的 PATH 变量:echo $PATH
  • PATH 变量不会通过写入 .profile 自动更新,要么打开一个新的 shell,要么执行source .profile
  • 该文件称为 .profile,而不是 profile
于 2018-08-01T12:08:51.890 回答