Clojure REPL from a USB drive

I'm trying to learn Clojure at the moment, but I'm learning about parents this weekend. They have a laptop for Windows, but I don’t want to install anything ... so is it possible to run Clojure REPL solely with files installed on a USB drive?

+4
source share
3 answers

The best clojure portable environment I've come across is Lisp Cabinet .

It provides the ability to use multiple lisp environments, but you can only choose the clojure environment. It’s a little difficult to find out from the website that it is portable, but the installer allows you to install everything in one folder for fully portable use.

Change As for repl, when you run it, lisp Cabinet gives you a REAL for emacs slime for your chosen environments (which would probably just be clojure).

+2
source

Of course it absolutely will work. If you install Java and Clojure on a flash drive, it will work just as if you installed it on a regular hard drive.

As this blog post recommends clj.bat up the clj.bat file:

 @ECHO OFF java -cp clojure.jar clojure.lang.Repl 

Just keep in mind that your parent laptop will not have any environment variables (e.g. PATH), so depending on where everything is located, you need to configure it to make sure java recognized and clojure.jar is on the way to the classes.

+2
source

You can also install leiningen on a USB stick. Then call

 /path/to/USB/lein.bat repl 

Enjoy it!

+1
source

Source: https://habr.com/ru/post/1340078/


All Articles