在 Mac 上安装 Leiningen 时出现问题
Issue installing Leiningen on Mac
我最近将 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)
然后我 updated/upgraded 一切都在自制软件中。 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 版本,并且我已经尝试从 bash 脚本关闭 leiningen.org 安装它,但同样失败了。
我该如何解决这个问题?
谢谢。 :)
在错误消息中它说它无法检索 cinder:cinder-nrepl
(应该是 cider:cider-nrepl
)依赖项。这很可能是由于您的 profiles.clj
文件之一(或 project.clj
文件,如果您是 运行 项目目录中的 lein
命令。)
此外,profiles.clj
文件可以在许多位置找到,并且在某些情况下它们的依赖映射会合并在一起,请在此处查看更多信息:https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md
我最近将 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)
然后我 updated/upgraded 一切都在自制软件中。 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 版本,并且我已经尝试从 bash 脚本关闭 leiningen.org 安装它,但同样失败了。
我该如何解决这个问题?
谢谢。 :)
在错误消息中它说它无法检索 cinder:cinder-nrepl
(应该是 cider:cider-nrepl
)依赖项。这很可能是由于您的 profiles.clj
文件之一(或 project.clj
文件,如果您是 运行 项目目录中的 lein
命令。)
此外,profiles.clj
文件可以在许多位置找到,并且在某些情况下它们的依赖映射会合并在一起,请在此处查看更多信息:https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md