【问题标题】:How can I install sbt 0.7.x via homebrew after already installing 0.11.x?在已经安装 0.11.x 之后,如何通过自制软件安装 sbt 0.7.x?
【发布时间】:2011-11-12 00:22:04
【问题描述】:

我已经通过brew install sbt 安装了sbt 0.11.x。问题是,我也需要用0.7.x,但是找不到安装方法。

我尝试了brew versions sbt,但只收到一堆警告

$ brew versions sbt
0.11.0   git checkout e2cdafd /usr/local/Library/Formula/sbt.rb
0.10.1   git checkout ed6327a /usr/local/Library/Formula/sbt.rb
0.10.0   git checkout acf6b3c /usr/local/Library/Formula/sbt.rb
Warning: Version of sbt could not be determined for 36d0c62.
Warning: Version of sbt could not be determined for d320664.
Warning: Version of sbt could not be determined for 0476235.
Warning: Version of sbt could not be determined for 5e51224.
Warning: Version of sbt could not be determined for ca753a3.
Warning: Version of sbt could not be determined for 1c9b260.
Warning: Version of sbt could not be determined for d0efd9e.
Warning: Version of sbt could not be determined for 9d78f97.
Warning: Version of sbt could not be determined for b9c7891.
Warning: Version of sbt could not be determined for f78bb10.
Warning: Version of sbt could not be determined for 5aeb38e.
Warning: Version of sbt could not be determined for 07cd287.
Warning: Version of sbt could not be determined for b84b3e0.
Warning: Version of sbt could not be determined for a82e823.
Warning: Version of sbt could not be determined for 7702e83.
Warning: Version of sbt could not be determined for 9909fd4.
0.5.3    git checkout e28616b /usr/local/Library/Formula/sbt.rb

我目前在 OS X Lion 上运行 homebrew 0.8。

【问题讨论】:

    标签: macos osx-lion sbt homebrew


    【解决方案1】:

    我不知道为什么 homebrew 找不到正确的版本,但你可以运行 git show $SHA 其中$SHA 是 brew 无法弄清楚的每个缩写 sha1。找到提交消息告诉你它正在将 sbt 更新到 0.7.x 的那个,然后使用那个。

    【讨论】:

      猜你喜欢
      • 2020-11-04
      • 1970-01-01
      • 1970-01-01
      • 2013-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-25
      相关资源
      最近更新 更多