在Mac OS X中安装Leiningen 2.X [英] Installation of Leiningen 2.X in Mac OS X

查看:419
本文介绍了在Mac OS X中安装Leiningen 2.X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用leiningen ver 1.X,我试图更新到2.X。

I'm using leiningen ver 1.X, and I'm trying to update it to ver 2.X.

正如这个网站,我下载的脚本为lein2,但是当我试图运行lein2命令,我得到这个错误消息。

As is written in this site, I downloaded the script as "lein2", but when I tried to run the "lein2" command, I get this error message.

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。

It seems that the server doesn't respond, but I'm not sure. What might be wrong? I use Mac OS X 10.7.4.

推荐答案

〜/ .m2 / repository 〜/ .m2 / repository / org 目录是root拥有的,因此我无法访问在其下创建子目录。改变所有权后,一切工作正常。我想我使用root权限,当我兴奋1.X版本的leiningen。

The ~/.m2/repositoryand ~/.m2/repository/org directories are root owned so that I couldn't get an access to create subdirectories beneath it. After changing the ownership, everything works fine. I guess I used root privilege when I excited 1.X version of leiningen.

这篇关于在Mac OS X中安装Leiningen 2.X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆