在 ubuntu 上安装 sbt [英] Install sbt on ubuntu
问题描述
我已经在 Ubuntu 上安装了 sbt.
I have installed sbt on Ubuntu.
:~/bin/sbt/bin$ ls
classes sbt sbt-launch.jar target
jansi.jar sbt.bat sbt-launch-lib.bash win-sbt
但是,每当我尝试启动 sbt(从 sbt 所在的同一目录)时,它都不起作用:
However, whenever I try to launch sbt (from the same directory where sbt is located) it does not work:
No command 'sbt' found, did you mean:
Command 'skt' from package 'latex-sanskrit' (universe)
Command 'sb2' from package 'scratchbox2' (universe)
Command 'sbd' from package 'cluster-glue' (main)
Command 'mbt' from package 'mbt' (universe)
Command 'sbmt' from package 'atfs' (universe)
Command 'lbt' from package 'lbt' (universe)
Command 'st' from package 'suckless-tools' (universe)
Command 'sb' from package 'lrzsz' (universe)
我是 linux 新手,不知道如何解决这个问题.
I am new to linux and I have no idea how to tackle this issue.
推荐答案
你好像安装了一个 zip 版本的 sbt,没问题.但是如果你在 Ubuntu 上,我建议你安装原生的 debian 包.这就是我设法在我的 Ubuntu 12.04 上安装它的方式.在这里查看:http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html或者直接从这里下载.
It seems like you installed a zip version of sbt, which is fine. But I suggest you install the native debian package if you are on Ubuntu. That is how I managed to install it on my Ubuntu 12.04. Check it out here: http://www.scala-sbt.org/release/docs/Installing-sbt-on-Linux.html Or simply directly download it from here.
这篇关于在 ubuntu 上安装 sbt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!