首页 > sbt > macport install sbt 0.11.3

macport install sbt 0.11.3

2012-08-13 sbtmacports

问题

我的项目需要sbt 0.11.3,但是,port install只能给我0.11.2。如何使用macport安装sbt 0.11.3?

$ sudo port install sbt
--->  Installing sbt @0.11.2_0
--->  Activating sbt @0.11.2_0

解决方法

首先,您可以联系列为该端口维护者的人员。(port info sbt找到维护者)。然而,在维护者更新端口之前可能需要一些时间,或者可能没有分配维护者(显示为“nomaintainer@macports.org”)。

或者,您也可以在macports trac上提交票证。

但是如果您需要立即使用更新的版本,并且不想手动构建sbt(configure; make; make install)。然后,您可以在本地portfile存储库中创建sbt的portfile副本并更新该端口文件。

  1. 创建本地portfile存储库:howto
  2. 复制sbt portfile目录(名为“sbt”的目录(路径“/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/sbt/”),其中包含文件“Portfile”和目录“files”)到本地portfile存储库中
  3. 编辑本地sbt Portfile以包含新的sbt版本号和校验和。
  4. portindex在本地portfile存储库中再次运行
  5. 安装sbt port install -s sbt

这仅在新版本与旧版本非常相似时才有效,并且不需要对构建过程进行任何更改。

我希望这可以提供帮助。

问题

I need sbt 0.11.3 for my project, however, port install only gives me 0.11.2. How to install sbt 0.11.3 using macport?

$ sudo port install sbt
--->  Installing sbt @0.11.2_0
--->  Activating sbt @0.11.2_0

解决方法

Firstly, you can contact the person listed as the maintainer of the port. (Do port info sbt to find the maintainer). It may however take some time before the maintainer updates the port, or there may be no maintainer assigned (shown as "nomaintainer@macports.org").

Alternatively, you also can file a ticket on macports trac.

But if you need the newer version right away, and do not want to build sbt by hand (configure;make;make install). Then you can create a copy of sbt's portfile in a local portfile repository and update that portfile.

  1. Create a local portfile repository: howto
  2. Copy the sbt portfile directory (a directory called "sbt" (path "/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/sbt/"), containing the file "Portfile" and directory "files") into your local portfile repository
  3. Edit your local sbt Portfile to contain the new sbt version number and checksums.
  4. Run portindex again in your local portfile repository
  5. Install sbt with port install -s sbt

This only works if the new version is quite similar to the old one, and no changes to the build process are needed.

I hope this can help.

相似信息