我正在尝试在 scala 中使用 zeromq 扩展,但编译失败并使用 sbt。
import akka.zeromq._
这是我得到的错误;
object zeromq is not a member of package akka
build.sbt 文件看起来像;
name := "Akka Test"
version := "1.0"
scalaVersion := "2.10.2"
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Sonatype (releases)" at "https://oss.sonatype.org/content/repositories/releases/"
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.2.0"
libraryDependencies += "org.zeromq" %% "zeromq-scala-binding" % "0.0.6"
我尝试按照 zeromq 官方页面上的 osx 安装说明进行操作。 http://zeromq.org/bindings:scala-binding
zeromq version = 2.1.11
scala version = 2.10.2
os = osx