404尝试通过brew安装sbt时出错

时间:2016-10-14 08:49:46

标签: scala sbt homebrew

我正在尝试brew install sbt并获得此信息:

==> Downloading http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar

curl: (22) The requested URL returned error: 404 Not Found Error:
Failed to download resource "sbt" Download failed:
http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar

任何想法如何解决?

1 个答案:

答案 0 :(得分:1)

我不想全局安装它。使用:

$ cat get_sbt.sh
#!/bin/bash

curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt > sbt \
  && chmod 0755 sbt

然后运行:

./sbt

它将为您下载最新版本。