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

前端 未结 1 988
说谎
说谎 2020-12-30 11:36

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.

相关标签:
1条回答
  • 2020-12-30 12:06

    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.

    0 讨论(0)
提交回复
热议问题