Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install sbt on ubuntu [closed]

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 

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) 

I am new to linux and I have no idea how to tackle this issue.

like image 656
NoIdeaHowToFixThis Avatar asked Dec 04 '12 20:12

NoIdeaHowToFixThis


People also ask

Where is sbt launch jar Ubuntu?

As you can see, the sbt-launch. jar is installed in the <sbt-home>/libexec/bin/sbt-launch. jar folder.

Do I need sbt for Scala?

sbt is a popular tool for compiling, running, and testing Scala projects of any size. Using a build tool such as sbt (or Maven/Gradle) becomes essential once you create projects with dependencies or more than one code file.

Is sbt open-source?

sbt is an open-source build tool for Scala and Java projects, similar to Apache's Maven and Ant. Its main features are: Native support for compiling Scala code and integrating with many Scala test frameworks.


2 Answers

The simplest way of installing SBT on ubuntu is the deb package provided by Typesafe.

Run the following shell commands:

  1. wget http://apt.typesafe.com/repo-deb-build-0002.deb
  2. sudo dpkg -i repo-deb-build-0002.deb
  3. sudo apt-get update
  4. sudo apt-get install sbt

And you're done !

like image 65
paradigmatic Avatar answered Sep 19 '22 16:09

paradigmatic


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.

like image 20
Liang Zhou Avatar answered Sep 22 '22 16:09

Liang Zhou