Installing SBT on Ubuntu - Module not found

╄→尐↘猪︶ㄣ 提交于 2020-01-04 04:36:24

问题


I'm trying to install SBT on Ubuntu 12.04 by using the DEB provided here: http://www.scala-sbt.org/0.13.2/docs/Getting-Started/Setup.html .

After running sbt however, I get the error:

Getting org.scala-sbt sbt 0.13.0 ...

:: problems summary ::
:::: WARNINGS
        module not found: org.scala-sbt#sbt;0.13.0

    ==== local: tried

      /root/.ivy2/local/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== sbt-releases-repo: tried

      http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== sbt-plugins-repo: tried

      http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== maven-central: tried

      http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.0/sbt-0.13.0.pom

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.scala-sbt#sbt;0.13.0: not found

        ::::::::::::::::::::::::::::::::::::::::::::::

And inspecting update.log:

java.lang.RuntimeException: not found
    at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:238)
    at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:292)
...

Error during sbt execution: Error retrieving required libraries
    at xsbt.boot.Pre$.error(Pre.scala:26)
    at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:105)

Any help?

Thank you


回答1:


My context was installing apache-spark on 14.04 but I had a similar problem. Someone else provided an answer in another thread:

sudo apt-get -y install ca-cacert

After this it worked for me.




回答2:


hmm, same problem with 0.13.5, something wrong, maybe SBT removed or moved from repositories. i have in ivy cache 0.13.0 and 0.13.1 version, try to extract archive into

~/.ivy2/cache/org.scala-sbt/sbt/

or

~/.ivy2/local/org.scala-sbt/sbt/

hope it helps



来源:https://stackoverflow.com/questions/23978830/installing-sbt-on-ubuntu-module-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!