在Mac上安装Leiningen的问题

时间:2015-02-21 19:59:53

标签: macos clojure osx-yosemite leiningen

我最近将我的Mac更新为Yosemite。我安装了Java SDK 1.8.0版本

$ java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

然后我更新/升级了自制软件中的所有内容。 Leiningen没有工作,所以我卸载并重新安装它。

$ brew install leiningen
==> Downloading https://github.com/technomancy/leiningen/archive/2.5.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/leiningen-2.5.1.tar.gz
==> Downloading https://github.com/technomancy/leiningen/releases/download/2.5.1/leiningen-2.5.1-standalone.zip
Already downloaded: /Library/Caches/Homebrew/leiningen--jar-2.5.1.zip
==> Caveats
Dependencies will be installed to:
  $HOME/.m2/repository
To play around with Clojure run `lein repl` or `lein help`.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
  /usr/local/Cellar/leiningen/2.5.1: 8 files, 15M, built in 2 seconds

当我再次尝试运行Leiningen时,我得到了同样的错误:

$ lein
(Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.pom from central)
(Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar from central)
(Could not find artifact cinder:cinder-nrepl:jar:0.8.1 in central (http://repo1.maven.org/maven2/))
(Could not find artifact cinder:cinder-nrepl:jar:0.8.1 in clojars (https://clojars.org/repo/))
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

我没有使用代理或类似我在家庭网络上的任何内容。

我试图降级到Leiningen的2.4.2版本,我试图从leiningen.org上的bash脚本安装它,但是以相同的方式失败。

我如何解决此问题?

谢谢。 :)

1 个答案:

答案 0 :(得分:2)

在错误消息中,它表示无法检索cinder:cinder-nrepl(应该是cider:cider-nrepl)依赖项。这很可能是由于您的profiles.clj个文件(或project.clj文件中的拼写错误,如果您在项目目录中运行lein命令。)

此外,profiles.clj文件可以在许多位置找到,并且在某些情况下它们的依赖关系图合并在一起,请在此处查看更多信息:https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md