如何在没有 clojure.jar 的情况下从 Github 存储库在 Ubuntu 10.04 上安装 Clojure

发布于 2024-11-07 01:36:39 字数 731 浏览 7 评论 0原文

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

通过 Google 搜索,我发现了多个指南,这些指南非常清晰地指导了如何使用 SLIME 安装所有依赖项以及有用的工具和构建器,例如 ant、maven、leiningen 和 emacs。

有些指南有点过时,特别是考虑到 Clojure 开发的速度有多快,所以我尽可能地搜索了最新的指南。我从 2010 年 12 月起就一直遵循指南,它与大多数其他指南非常相似。

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

java -cp clojure.jar clojure.main

我看到在我从 github.com/clojure/clojure.git 和 github.com/clojure/ 获得的 clojure 源代码中clojure-contrib.git 实际上都没有 clojure.jar 来将 JVM 指向...

我认为也许我做错了什么,因为从我在 Google 上的搜索来看,显然之前没有人遇到过这个问题。我通过浏览器仔细检查了 Github 上的存储库,那里也没有 .jar 文件。

那么...我在哪里可以获得这个 .jar 文件或者我应该采取其他方法来解决这个问题?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过期以后 2024-11-14 01:36:39

FWIW,如果你没有强烈的编译东西的愿望,如果你只下载 leiningen 或 cake,并让其中一个来管理所有 jars 和类路径之类的东西,你的生活会更容易。例如,以下是让 lein 在普通 UNIX 系统上运行所需的一切。 (我省略了其中一些命令生成的输出屏幕,以强调您只需输入一些内容)。

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

如果您将 lein 放在 PATH 中的某个位置(例如 ~/bin)而不是通过完整路径调用它,您的体验会更好,但这完全没有必要。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文