$HOME
directory, type the following at the command line :
mkdir Programs cd Programs
Programs
directory:
chmod u+x jdk-6u26-linux-x64.bin ./jdk-6u26-linux-x64.bin
Programs
directory:
clojure-1.2.1.tgz. Uncompress the file, typing at the command line:
tar xzf clojure-1.2.1.tgz
.bashrc
file. At the command line type:
gedit $HOME/.bashrcGo to very end of the file and add the following lines:
export JAVA_HOME=$HOME/Programs/jdk1.6.0_26 export CLOJURE_HOME=$HOME/Programs/clojure export PATH=$JAVA_HOME/bin:$PATH alias clj='java -cp .:$CLOJURE_HOME/clojure.jar:$CLOJURE_HOME/clojure-contrib.jar:$CLOJURE_HOME/jline.jar jline.ConsoleRunner clojure.main'Save the file.
Edit/Profile Preferences
. Select the Title and Command
tab, and tick the "Run command as login shell" check-box.
cljYou should see the Clojure REPL (Read Eval Print Loop):
Clojure 1.2.1 user=>Type Ctrl-D to exit the REPL.
clojure.xml
file into jEdit's modes
directory.