Differences between revisions 2 and 3
Revision 2 as of 2011-11-12 20:24:26
Size: 2923
Editor: ?WolodjaWentland
Comment:
Revision 3 as of 2013-05-21 14:55:26
Size: 0
Editor: ?WolodjaWentland
Comment: Outdated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
 
<<TableOfContents(2)>>

= Clojure =
[[http://www.clojure.org|Clojure]] is a Lisp dialect that targets the Java Virtual Machine (JVM).

= Installation =

== Clojure ==

Debian provides packages for the following Clojure versions:

|| Version || Package || [[Squeeze]] || [[http://backports-master.debian.org/|Backports]] || [[Wheezy]] || [[DebianUnstable|Sid]] ||
|| '''1.1''' || [[DebianPkg:clojure]] || (./) || {X} || (./) || (./) ||
|| '''1.2''' || [[DebianPkg:clojure1.2]] || {X} || {X} || (./) || (./) ||
|| '''1.3''' || [[DebianPkg:clojure1.3]] || {X} || {X} || (./) || (./) ||

=== Squeeze ===

[[DebianPkg:clojure]] can be installed directly, but to install either [[DebianPkg:clojure1.2]]
or [[DebianPkg:clojure1.3]] on [[Squeeze]] you have to [[Backports|backport]] them manually.

1. Enable [[Backports||backports]] and sid sources

Please follow the instructions on [[http://backports-master.debian.org/Instructions/]]
to be able to install backported packages. You also need to be able to retrieve
[[SourcePackage|source packages]] from unstable.

Add a ''deb-src'' line for unstable to '''{{{/etc/apt/sources.list}}}''':

{{{
deb-src http://cdn.debian.net/debian/ unstable main contrib non-free
}}}

and run

{{{
apt-get update
}}}

2. Backport Clojure

To backport Clojure manually you have to install its build dependencies and compile the source package.

{{{
apt-get build-dep clojure1.3
apt-get source -b clojure1.3
}}}

Which enables you to install the created package with

{{{
dpkg -i clojure1.3*.deb
}}}

=== Wheezy / Sid ===

The packages can be directly installed on [[Wheezy]] and [[DebianUnstable|Sid]].

== Leiningen ==

If you want to develop in Clojure you probably want to use [[https://github.com/technomancy/leiningen|leiningen]].
Leiningen is a build-tool that makes it easy to manage Clojure projects.

=== Squeeze ===

To install [[DebianPkg:leiningen]] on Squeeze you have to backport the following build dependencies:

 * [[DebianPkg:clojure1.2]]
 * [[DebianPkg:librobert-hooke-clojure]]
 * [[DebianPkg:libclucy-clojure]]

Follow the instructions above to backport [[DebianPkg:clojure1.2]] and install it. You can now backport
[[DebianPkg:librobert-hooke-clojure]], [[DebianPkg:libclucy-clojure]] and finally [[DebianPkg:leiningen]]
in a similar way

{{{
apt-get build-dep libclucy-clojure
apt-get source -b libclucy-clojure
dpkg -i libclucy-clojure*.deb

apt-get build-dep librobert-hooke-clojure
apt-get source -b librobert-hooke-clojure
dpkg -i librobert-hooke-clojure*.deb

apt-get build-dep leiningen
apt-get source -b leiningen
dpkg -i leiningen*.deb
}}}


=== Wheezy / Sid ===

You can install [[DebianPkg:leiningen]] directly on both Wheezy and Sid.

= Packaging =

See [[Clojure/Packaging]]