Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install sbt on ubuntu/debian with apt-get [closed]

Tags:

The sbt installation directions indicate sbt were in the repository. However:

$ sudo apt-get install -y sbt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package sbt

Let us look around a bit ..

$ s apt-cache search sbt
coop-computing-tools - cooperative computing tools
libnet-z3950-simpleserver-perl - simple perl API for building Z39.50 servers
libusbtc08-1 - Hardware interface library for PicoTech USB TC08 Thermocouple sensor
libusbtc08-dev - Development files for PicoTech USB TC08
python-usbtc08 - Python wrapper for libusbtc08
s51dude - In-System Programmer for 8051 MCUs using usbtiny

Ummm .. no ....

So then is apt-get working with sbt on ubuntu? Is there a special apt repository for it?

like image 323
WestCoastProjects Avatar asked Feb 20 '16 22:02

WestCoastProjects


People also ask

What is SBT Linux?

What is sbt? sbt is an open-source, cross-platform build tool for Scala and Java projects. Some of its main features are: Support for continuous compilation, testing and deployment. Native support for compiling Scala code.


1 Answers

After more searching the answer was found here: http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt

This one does work

sbt
  Getting org.scala-sbt sbt 0.13.9 ...

And then.. be patient ..

like image 66
WestCoastProjects Avatar answered Sep 18 '22 12:09

WestCoastProjects