2010/10/31 Steven Arnold <thoth.amon.i...@gmail.com>: > Hello, I am trying to use the str-utils library with Clojure (or the > str-utils2, I understand str-utils was deprecated). Neither of these > work for me. I am on OS X 10.6.4 and have installed clojure-contrib > via the MacPorts system. The clojure-contrib is in my classpath; see > below for a transcript of what I did. > > I have been struggling with this for hours, searching through Google, > asking on the IRC channel....all to load a library from clojure- > contrib. Any ideas what I'm missing
This is not an answer to your original question, but I hope you find this useful anyway (if not now, some time in the future). Managing the classpath manually can indeed be tedious. Unless you for some reason really need to do it manually, I would recommend using one of Clojure's build tools (Leiningen[1] and Cake[2] are very common) to manage it for you. Here is an example of how you would do it with Leiningen (assuming it is installed; see the instructions on its web page): lein new foobar cd foobar/ <editor of choice> project.clj With Leiningen and Cake (they use the same project structure), you declare the versions of Clojure, Contrib and any other dependencies you need in the project.clj file. Here is an example of it for using Clojure 1.2: (defproject foobar "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]]) Leiningen will fetch the correct versions of the jar files and set up the classpath for you: lein deps lein repl Happy hacking! // raek [1] http://github.com/technomancy/leiningen [2] http://github.com/ninjudd/cake -- 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