【SBT】之 下載安裝
阿新 • • 發佈:2018-12-20
一、簡介
sbt uses a small number of concepts to support flexible and powerful build definitions. sbt(simple build tools),簡單構建工具
預先準備
如官網所示,首先安裝 JDK 版本需1.8以上
二、安裝
命令列安裝
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 2EE0EA64E40A89B84B2DF73499E82A75642AC823 sudo apt-get update sudo apt-get install sbt
用 sbt sbt-version
進行校驗
同時可以用 sbt about
檢視下資訊
若 sbt sbt-version
出現error
可以換一個命令試一下 sbt sbtVersion
三、遇到的問題
(1)apt-get update
失敗
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi' E: Sub-process returned an error code
解決:
sudo pkill -KILL appstreamcli wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb sudo apt-get install sbt