如何安装Clojure在Ubuntu 10.04从Github repo没有clojure.jar [英] How to install Clojure on Ubuntu 10.04 from Github repo with no clojure.jar

查看:179
本文介绍了如何安装Clojure在Ubuntu 10.04从Github repo没有clojure.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在我的电脑上安装Clojure来学习和使用。我正在运行Ubuntu 10.04,并安装了来自Synaptic的最新的Sun Java SDK和环境。



使用Google搜索,我发现了多个指南,安装所有依赖项和有用的工具和构建器,如ant,maven,leiningen和emacs与SLIME。



一些指南有点过时,特别是考虑Clojure开发的速度有多快,所以我搜索了最新的一个。我从2010年12月起一直在关注指南,与大多数人非常相似。 / p>

我遇到的一个大问题是在我必须启动REPL的步骤:

  java -cp clojure.jar clojure.main 

在clojure源我得到从github.com/clojure/clojure.git和github.com/clojure/clojure-contrib.git,实际上没有一个clojure.jar指向JVM到...



我认为也许有一些我做错了,因为没有人有这个问题,显然从我在Google上的搜索。我通过浏览器双重检查了Github上的repos,并且没有.jar文件。



所以...我在哪里获得这个.jar文件或者是另一种方式我应该去这个?

解决方案

FWIW,如果你没有强烈的愿望编译的东西,你的生活会更容易,如果你只是下载leiningen或蛋糕,并得到其中一个管理所有的jar和类路径和东西。例如,下面是在一个vanilla unix系统上运行lein所需要的。 (我省略了这些命令生成的屏幕,强调你只需要键入几个东西)。

  akm @ li231-96:〜
$ curl https://raw.github.com/technomancy/leiningen/stable/bin/lein> lein

akm @ li231-96:〜
$ chmod + x lein

akm @ li231-96:〜
$ ./lein self- install

akm @ li231-96:〜
$ ./lein repl
使用JLine作为控制台I / O;安装rlwrap以获得最佳体验。
REPL开始;服务器在本地主机上侦听:60099。
user => (inc 1)
2

你的经验会更好,如果你把lein放在你的PATH某个地方(例如〜/ bin ),而不是通过完整路径调用它,但它根本不是必要的。


I've been trying to install Clojure on my computer to learn and use. I'm running Ubuntu 10.04, and have installed the latest Sun Java SDK and environment from Synaptic.

Searching with Google, I found multiple guides that give pretty clear guides on how to go about installing all the dependencies and useful tools and builders like ant, maven, leiningen, and emacs with SLIME.

Some of the guides are a bit dated, especially considering how fast Clojure development moves, so I searched for the most up-to-date one I could. I've been following this guide from December of 2010 and it's very similar to most others.

The one big problem I come up against is at the step where I have to fire up the REPL with

java -cp clojure.jar clojure.main

I see that in the clojure source I've gotten from github.com/clojure/clojure.git and the github.com/clojure/clojure-contrib.git that neither actually have a clojure.jar to point the JVM to...

I think that maybe there's something I'm doing wrong, since no one has had this problem before apparently from my searches on Google. I double checked the repos on Github via a browser and there is no .jar file there either.

So...where do I get this .jar file or is there another way I'm supposed to go about this?

解决方案

FWIW, if you don't have an intense desire to compile stuff, your life will be easier if you just download leiningen or cake, and get one of them to manage all the jars and classpaths and stuff. For example, here's all it takes to get lein running on a vanilla unix system. (I've omitted the screensful of output some of these commands generate to emphasize that you only have to type a few things).

akm@li231-96: ~
$ curl https://raw.github.com/technomancy/leiningen/stable/bin/lein > lein

akm@li231-96: ~
$ chmod +x lein

akm@li231-96: ~
$ ./lein self-install

akm@li231-96: ~
$ ./lein repl
Using JLine for console I/O; install rlwrap for optimum experience.
REPL started; server listening on localhost:60099.
user=> (inc 1)
2

Your experience will be better if you put lein on your PATH somewhere (eg ~/bin) rather than calling it by full path, but it's not at all necessary.

这篇关于如何安装Clojure在Ubuntu 10.04从Github repo没有clojure.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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