Skip to content

Instantly share code, notes, and snippets.

@lisp-is-the-future
Last active December 14, 2022 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisp-is-the-future/4962c05d86652e7f40c0ae1a9efc2a6a to your computer and use it in GitHub Desktop.
Save lisp-is-the-future/4962c05d86652e7f40c0ae1a9efc2a6a to your computer and use it in GitHub Desktop.
Install and run Clojure REPL without emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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
@gwangjinkim
Copy link

gwangjinkim commented May 9, 2020

For installing clojure into termux, do:

pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
# https://github.com/MasterDevX/Termux-Java 
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment