Hello, I am also using Leiningen in Ubuntu, and I feel your pain.
One thing I would suggest is to remove anything related to your tool chain 
which was installed by Ubuntu.
(except maybe emacs 24.x).
You clearly have Clojure installed via the usual Ubuntu Software Center or 
related mechanism.
Uninstall it!

I would skip directly to version 2 of Leiningen.
You will find that dependency jars get dropped into the hidden file 
~/.m2/repository,
for example, when you use the "lein install" command that is where they go.

Get clojure mode via the emacs package manager.  Get the latest!
I got stuck on an old version which caused much confusion.  I still see 
version 1.7.1
in the list of packages, whereas I have installed version 1.11.5.  I 
believe this is
due to my .emacs file setting package archives for ELPA, gnu, and 
marmalade, and
some obsolete stuff still exists and hazardous to the newbie.

I don't have anything related to slime or swank or swank-clojure installed 
via the
emacs package manager.  However, I do have lein-swank listed in my 
~/.lein/profile.clj
file.

Another thing to uninstall are any version of slime and swank which were 
installed
via the "Ubuntu Software Center".  These caused lots of confusion.  This 
stuff may
also be hanging out in your ~/.emacs.d directory.

I installed version 24.x emacs manually.  I'm not familiar with Ubuntu 
Precise, but perhaps
that distribution is installing a usable version of emacs.  I had to 
install a few libraries
to get it all going, I think some X window related stuff using the Synaptic 
Package Manager.

M-x clojure-jack-in is the way to fire up a repl running in an emacs buffer.

I've got a working installation, it's easy to use and powerful, but if I 
said I could start from
scratch again and make it work in 5 minutes I would be a liar.  I think the 
best thing to do is a thorough
housecleaning, start from scratch with version 2 leiningen, emacs 24 and 
latest clojure-mode.

Good luck!  I'm test driving nrepl next.
Greg




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to