[英]Installation of Leiningen 2.X in Mac OS X
我正在使用leiningen ver 1.X,我正在嘗試將其更新為2.X版。
正如在本網站上寫的那樣,我將腳本下載為“lein2”,但是當我嘗試運行“lein2”命令時,我收到此錯誤消息。
Could not find artifact lein-newnew:lein-newnew:pom:0.3.4 in central (http://repo1.maven.org/maven2)
Could not transfer artifact lein-newnew:lein-newnew:pom:0.3.4 from/to clojars (https://clojars.org/repo/): Specified destination directory cannot be created: /Users/smcho/.m2/repository/lein-newnew/lein-newnew/0.3.4
Exception in thread "main" org.sonatype.aether.resolution.DependencyResolutionException: Failed to collect dependencies for [#<Dependency lein-newnew:lein-newnew:jar:0.3.4 (compile)>]
at ...
... 4 more
似乎服務器沒有響應,但我不確定。 可能有什么問題? 我使用的是Mac OS X 10.7.4。
~/.m2/repository
和~/.m2/repository/org
目錄是root用戶所有,因此我無法訪問它下面的子目錄。 更改所有權后,一切正常。 當我激動1.in版本的leiningen時,我想我使用了root權限。
brew有leiningen的配方。
> brew update
> brew install leiningen
> lein -v
Leiningen 2.5.3 on Java 1.8.0_45 Java HotSpot(TM) 64-Bit Server VM
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.