Sunday, March 29, 2009

Meet Mr Clbuild

I leaved Mr ASDF-INSTALL after a long time work with he and come to meet Mr Clbuild.

I follow instructions of its website, download by darcs

$ darcs get http://common-lisp.net/project/clbuild/clbuild
make the shell script executable:
$ cd clbuild
clbuild$ chmod +x clbuild
Try check to make sure all its helper friend are here
clbuild$ ./clbuild check

It report I have not 'which', what is which? I log in mystic server in which another Mr Clbuild stays and see which. which produce the path of it parameter. oh! whereis also do this work, I make a link from whereis to imitate which. Unfortunately whereis produce the path of all binary, library, manual files, even whose its parameter is print first so whereis -b also is wrong.

I have to install which command. Good luck, which command is also which package in Arch Linux.

Go on!

clbuild$ ./clbuild install cl-ppcre
No problem! then
clbuild$ ./clbuild slime-configuration

I love emacs and live in it for a long time, so I can not give up slime. I do not want to tousle my .emacs, so I use slime-configuration instead of slime. It prints a .emacs excerpt. I'm very careful and check it before copy&paste it into my .emacs: It try to load slime which I do not install by clbuild.

clbuild$ ./clbuild install slime

so after some greeting words with Mr clbuild, what is my purpose to meet clbuild? Let he invite Mr Weblocks as my friend, :).

Mr weblocks is in the list of

clbuild$ ./clbuild projects
clbuild$ ./clbuild install weblocks

Mr Weblocks has lots of friend and my slow and GFWed1 ISP interrupt the party, Mr Clbuild tell me to run

clbuild$ ./clbuild update --resume

I regard it as a ordinary problem, but it is not! Why I always be out of luck, :(

(require :weblocks)
....
Symbol "DEFINE-FOREIGN-LIBRARY" not found in the CFFI package.

I grep "define-foreign-library" in cffi source directory, there is not. I check its version, it is 0.1.0, but my ASDF-INSTALLed cffi is 0.10.3.oh no! After struggle for some time in switch between Mr ASDF-INSALL and Mr Clbuild (It seems clbuild is not compatible with ASDF-INSTALL), I finally resolve it by reinstall cffi by clbuild.

These are my first meeting with Mr clbuild, I hope he will be a good friend of mine, :)


1. Great FireWall

1 comment:

  1. "(It seems clbuild is not compatible with ASDF-INSTALL)"

    To clarify:

    1. clbuild installs the latest versions from upstream repositories, ASDF-INSTALL installs release or snapshot tarballs

    2. clbuild installs all into its own directory, ASDF-INSTALL somewhere else (e.g. ~/.sbcl)

    ReplyDelete