asdfでライブラリ追加してみたが失敗
実際にライブラリを追加してみる。追加の方法としては、
- インターネットからライブラリをダウンロード
- ローカルのファイルシステムからインストール
と、何通りか方法があるようだ。詳しくは、以下のサイトにある。
Installing a Library | ASDF-Install Tutorial
だが、インストールしても、そのままでは一度処理系を終了してしまうと自動でロードされない。ここで、ccl-init.lispが生きてくる。流れとしては以下のような感じだ。
ライブラリをロードする処理は、大抵はそのライブラリのドキュメントに書いてあるっぽい。
とりあえず、サイトの通りcl-ppcreを追加してみる。
Welcome to Clozure Common Lisp Version 1.6 (DarwinX8664)! ? (asdf-install:install "http://weitz.de/files/cl-ppcre.tar.gz") Install where? 1) System-wide install: System in /opt/local/share/asdf-install/site-systems Files in /opt/local/share/asdf-install/site/ 2) Personal instrallation: System in /Users/User1/.ccl/systems/ Files in /Users/User1/.ccl/site/ 0) Abort installation. --> 1 ;;; ASDF-INSTALL: Downloading 157665 bytes from http://weitz.de/files/cl-ppcre.tar.gz to /Users/User1/asdf-install-0.asdf-install-tmp ... > Error: value 1508564 is not of the expected type (MOD 1114112). > While executing: CCL::UTF-8-STREAM-DECODE, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? for other options. 1 > q ?
うーむ・・・よくわからんがダウンロードに失敗したっぽい。期待通りの型じゃないってどういうことだ?