Hi, there , excuse me for asking this stupid question, but I'm fresh to common-lisp. I knew from http://weitz.de/cl-ppcre/#install that debian can install cl-ppcre from native package, so I use "apt-get install cl-ppcre" to install, and there are no problem during installation, but i don't know how to use it at all, should i just require from REPL? But it get a error. Maybe i just don't know how to use library in lisp, and i'm using clisp.
徐迪 <xudi...@gmail.com> writes: > Hi, there , excuse me for asking this stupid question, but I'm fresh > to common-lisp. > I knew from http://weitz.de/cl-ppcre/#install that debian can install > cl-ppcre from native package, so I use "apt-get install cl-ppcre" to > install, and there are no problem during installation, but i don't > know how to use it at all, should i just require from REPL? But it get > a error.
What error are you getting?
> Maybe i just don't know how to use library in lisp, and i'm using > clisp.
Once you have a library installed, it should be this easy:
cl-user> (require :cl-ppcre)
If that's generating an error, it's possible that the Debian package has problems. You could try using ASDF-INSTALL to install it:
For lisp libraries you should strongly prefer quicklisp to asdf-install and probably to the Debian packages. If you have troubles with that you can probably get some help from #quicklisp on irc.freenode.net.
On Sat, Jul 2, 2011 at 10:07 AM, Robert Uhl <eadmun...@gmail.com> wrote: > 徐迪 <xudi...@gmail.com> writes:
>> Hi, there , excuse me for asking this stupid question, but I'm fresh >> to common-lisp. >> I knew from http://weitz.de/cl-ppcre/#install that debian can install >> cl-ppcre from native package, so I use "apt-get install cl-ppcre" to >> install, and there are no problem during installation, but i don't >> know how to use it at all, should i just require from REPL? But it get >> a error.
> What error are you getting?
>> Maybe i just don't know how to use library in lisp, and i'm using >> clisp.
> Once you have a library installed, it should be this easy:
> cl-user> (require :cl-ppcre)
> If that's generating an error, it's possible that the Debian package has > problems. You could try using ASDF-INSTALL to install it:
> For lisp libraries you should strongly prefer quicklisp to > asdf-install and probably to the Debian packages. If you have troubles > with that you can probably get some help from #quicklisp on > irc.freenode.net.
> *** - LOAD: A file with name CL-PPCRE does not exist > The following restarts are available: > ABORT :R1 Abort main loop
Ah-ha! I bet that CLISP's (require :foo) is just a thin wrapper over (load "foo.lisp"), instead of being a thin wrapper over (asdf:oos asdf:'load-op :foo).
> Yes, after i use asdf-install and asdf:load-system, i can use it, still how > asdf works...
I bet just asdf on its own would have worked. You could remove the version you installed and see if it uses the Debian package version instead.