を参考にUbuntu 9.04にClojureをインストール。
sudo apt-get install openjdk-6-jdk
sudo apt-get install ant subversion git-core
mkdir ~/opt
cd ~/opt
svn co http://clojure.googlecode.com/svn/trunk clojure
svn up
cd clojure
ant
mkdir ~/.clojure
cp clojure.jar ~/.clojure
cd ~/.clojure
java -cp clojure.jar clojure.lang.Repl
user=> (+ 1 2)
3
cd ~/opt
git clone git://github.com/kevinoneill/clojure-contrib.git
cd clojure-contrib
git pull
ant -Dclojure.jar=../clojure/clojure.jar
cp *.jar ~/.clojure
emacs ~/.profile
=============
export CLOJURE_EXT=~/.clojure
PATH=$PATH:~/opt/clojure-contrib/launchers/bash
alias clj=clj-env-dir
=============
user=> (System/getProperty "java.class.path")
"/home/xxx/.clojure/clojure.jar
:/home/xxx/.clojure/clojure-contrib-slim.jar
:/home/xxx/.clojure/clojure-contrib.jar"
0 件のコメント:
コメントを投稿