0

我正在尝试开始使用 Chisel。按照 Chisel 网页上的说明,我安装了 scala 2.11 和 sbt,复制了 build.sbt 和 Hello World 示例。但是,我无法运行该示例。我收到以下错误。

tariq@ubuntu:~/work/scala-test$ sbt run
[info] Set current project to scala-test (in build file:/home/tariq/work/scala-test/)
[info] Updating {file:/home/tariq/work/scala-test/}scala-test...
[info] Resolving com.github.scct#sbt-scct;0.2.1 ...
[warn] Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/com/github/scct/sbt-scct_2.11_0.13/0.2.1/sbt-scct-0.2.1.pom
[info] You probably access the destination server through a proxy server that is not well configured.
[warn]  module not found: com.github.scct#sbt-scct;0.2.1
[warn] ==== local: tried

<snip>

info] Resolving jline#jline;2.12 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.scct#sbt-scct;0.2.1: not found
[warn]  :: edu.berkeley.cs#chisel_2.11;latest.release: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.github.scct:sbt-scct:0.2.1 (sbtVersion=0.13, scalaVersion=2.11)

<snip>

    at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: com.github.scct#sbt-scct;0.2.1: not found
[error] unresolved dependency: edu.berkeley.cs#chisel_2.11;latest.release: not found
[error] Total time: 23 s, completed Nov 19, 2014 4:26:38 PM
4

1 回答 1

1

看来 sbt 无法访问互联网(第 4 [info] 行指的是这个)。sbt 需要能够访问互联网才能下载软件包。

你在代理后面吗?你是在虚拟机上运行这个吗?

于 2014-11-21T19:23:45.610 回答