How to install Clojure on Ubuntu 10.04 from Github repo with no clojure.jar

£可爱£侵袭症+ 提交于 2019-11-30 07:21:10
amalloy

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!