Alex Rivera | Logout

Using clojure.math.numeric-tower, or any library

Asked 2012-01-03T00:14:48.577
20

I try to learn a bit of Clojure because the language looks nice. But it seems that there is no info anywhere on how to install/use libraries like for example the clojure.math.numeric-tower.

For now I run the REPL by typing this in my Linux shell:

java -cp ~/Clojure/clojure-1.3.0/clojure-1.3.0.jar  clojure.main

I downloaded the numeric-tower jar, and put it everywhere. I have modified the -cp option in every possible way. I have put the numeric_tower.clj file everywhere. It still doesn't work.

What's the way to use the libraries?

Edit
Report

1 Answer

0

E.g.

make lib folder

make under lib clojure/math

put file lib/clojure/math/numeric_tower.clj

java -cp .;lib;clojure-1.3.0.jar;lib/clojure clojure.main

repl

(use 'clojure.math.numeric-tower)

answered 2012-01-03T05:05:54.917

Your Answer