Last active
December 14, 2022 18:40
-
-
Save lisp-is-the-future/4962c05d86652e7f40c0ae1a9efc2a6a to your computer and use it in GitHub Desktop.
Install and run Clojure REPL without emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; setting up clojure completely without emacs | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;; | |
;; installing clojure | |
;; this worked for me (for both 64 bit and 32 bit computer) | |
;;;;;;;;;;;;;;;;;;;;;;;; | |
;; download clojure by git | |
git clone https://github.com/clojure/clojure.git | |
cd clojure | |
mvn -P local -D maven.test.skip=true package | |
;; run clojure using java | |
java -jar clojure.jar | |
;; end session by C-d key combination | |
;;;;;;;;;;;;;;;;;;;;;;;; | |
;; install leiningen | |
;;;;;;;;;;;;;;;;;;;;;;;; | |
mkdir -p ~/bin # sure you could use another place already in $PATH! | |
cd ~/bin | |
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
chmod a+x ~/bin/lein # set it to be executable | |
lein # start lein to self-install the self-install package | |
;; if ~/bin not yet in $PATH, | |
;; add ~/bin to $PATH in .bashrc by adding the line: | |
;; $PATH=$PATH:~/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For installing clojure into termux, do: