apt-get 可以在 Linux (ubuntu 10) 上安装 Clojure 吗?
我注意到有一个 Clojure 的包存储库,所以我尝试了
sudo apt-get install clojure
但是安装失败,看起来缺少 java 依赖项。
我的机器上正确安装了 java:javac -version
结果 1.6.0_26。
无论如何,我发现 leiningan 总是一种简单的方法,但我想我会尝试 apt-get 看看它是否有效。对这个错误消息有什么想法吗?
The following packages have unmet dependencies:
clojure : Depends: libasm3-java but it is not going to be installed
I noticed that there is a package repo for Clojure, so I tried
sudo apt-get install clojure
However, the install failed, it looks like there is a java dependency missing.
I have java installed correctly on my machine: javac -version
results 1.6.0_26.
In any case, I find leiningan is always an easy way to go, but thought I would try apt-get to see if it was working. Any thoughts on this error message?
The following packages have unmet dependencies:
clojure : Depends: libasm3-java but it is not going to be installed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
总结一下评论:
是的,apt-get 可以工作 –
...但是它不是安装 Clojure 的首选方式。
那么……安装 Clojure 的“正确”方法是什么?
Leiningen 仍然是快速安装并运行 Clojure 的最新传统方法。
步骤如下:
/usr/local/bin
sudo chmod +x /usr/local/bin/lein< /代码>。
当然,请确保首先安装了 Java。
这些步骤将在任何具有最新版本的平台上安装 Clojure。
To summarize the comments:
Yes, apt-get works –
... BUT it it is not the preferred way to install Clojure.
So ... whats the "right" way to install Clojure ?
Leiningen remains the up-to-date, conventional way to rapidly get a Clojure installation up and running.
The steps are as follows :
/usr/local/bin
sudo chmod +x /usr/local/bin/lein
.Make sure you have Java installed first, of course.
These steps will install Clojure on any platform with the latest version.
只需一个简单的脚本即可安装 leiningen:
Just a no-brainer script to install leiningen:
apt-get install leiningen
可以工作,并且可以轻松安装 Clojure 依赖项(包括您可能不需要的依赖项,但很容易)。 Debian sid 有 1.7.1,这是最新的稳定版本; Ubuntu 12.04 在 Universe 中提供了此功能。然后您可以按照lein 说明进行操作。Leiningen 2.0即将推出;或许在购电协议最终确定后,这将在购电协议中提供。
apt-get install leiningen
works, and easily installs Clojure dependencies (including ones you probably don't need, but it is easy). Debian sid has 1.7.1, which is the most recent stable version; Ubuntu 12.04 has this available in universe. Then you can follow the lein instructions.Leiningen 2.0 is coming soon; maybe that will become available in a PPA when it is finalized.
请参阅官方网站 http://clojure.org/downloads 的推荐。 “通过 Leiningen 获取 Clojure”部分。
See recommendations from official site http://clojure.org/downloads . "Get Clojure via Leiningen" section.