I've installed Geany on my Linux Mint machine and I wrote some simple code. Just a small hello world to get started with the language.
Now I'd like to run it and see what it outputs.
How can I run this code? I'm not using an IDE or something that's pre packaged, just the simple text editor Geany.
What command should I run?
You can run script with following command:
but it's better to use leiningen, especially when you'll start to add dependencies to your project. lein provides number of commands to run your code (with all necessary dependencies), pack code into archive with
lein jar
, or create complete, independent archives withlein uberjar
that you can run with:command
P.S. You can read how to use
lein
in following article - it describes base tasks & configurationsDrip is probably now the best answer to this question (see Drip's wiki for details on using Drip with Clojure).
Cake was incorporated into Leiningen and has since been superseded as the most stable implementation of Clojure automation by Drip - see this answer to a similar question here.