Shammer's Philosophy

My private adversaria

Install ClozureCL to Debian

ClozureCL can't be installed by apt-get on Debian. There is a tar.gz file of closure common lisp and using this file enables to install. The step is below.

  1. su -
  2. wget ftp://clozure.com/pub/release/1.9/ccl-1.9-linuxx86.tar.gz(Version will be changed at the time)
  3. tar xvzf ccl-1.9-linuxx86.tar.gz -C /usr/local/share/
  4. cd /usr/local/share/ccl/scripts
  5. edit ccl and ccl64, change CCL_DEFAULT_DIRECTORY value from /usr/local/src/ccl to /usr/local/share/ccl
  6. ln -s `pwd`/ccl /usr/local/bin/ccl
  7. ln -s `pwd`/ccl64 /usr/local/bin/ccl64

The command ccl may not be executed because of the message "lx86cl not found". In this case, using ccl64 only.
Then, create $HOME/.ccl-init.lisp like below.

(setf ccl:*DEFAULT-EXTERNAL-FORMAT*
      (ccl:make-external-format :character-encoding :utf-8 :line-termination :unix)
      ccl:*default-file-character-encoding* :utf-8
      ccl:*default-socket-character-encoding* :utf-8)