Jan 21 2010

Setting Up Incanter and MySQL

Published by tim at 12:16 pm under clojure, coding

Okay, Lein really does make stuff pretty easy. Rather than wrestling with eleventybillion classpaths, just install Lein.

Create a new project directory with

lein new mydirectory

Change the project.clj file that is autogenerated with:

defproject mydirectory “1.0.0-SNAPSHOT” :description “FIXME: write”
:dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"]
[org.clojure/clojure-contrib "1.0-SNAPSHOT"]
[mysql/mysql-connector-java "5.1.6"]
[incanter/incanter "1.0-master-SNAPSHOT"]])

(that is, add the mysql and incanter dependencies).

Download all the dependencies with

lein deps

Start up a REPL with everything in the classpath by just using

lein repl

Wow, that’s kind of nice.

No responses yet

Trackback URI | Comments RSS

Leave a Reply