Lisp HUG Maillist Archive

cl-ppcre in LispWorks?

I'm trying to set up cl-ppcre so that I can "require" it in LispWorks. 
This is the first time I've tried to do anything like this, so I may be 
missing something obvious.

I've been working through a series of problems:

1) "require" needs a pathname for the library

2) LW doesn't have a "mk" package for "mk:defsystem", so I deleted it 
in the cl-ppcre.system file

3) Loading cl-ppcre.system produces an error: "lisp" was found where a 
keyword symbol is expected. I don't see the cause of this.

At this point, I decided to ask if anyone has massaged the cl-ppcre 
package to work with LW 4.3.7, and can share it, or tell me what I need 
to do to make this work.

TIA,

  - Stoney

-- 
Stonewall Ballard
stoney@sb.org           http://stoney.sb.org/


Re: cl-ppcre in LispWorks?

Funny how 90% of the time I figure something out right after sending a 
message.

I didn't realize that the "make" defsystem isn't compatible with the 
defsystem in LW.

So, I've got cl-ppcre compiled and loaded. Works great!

How do I set this up so that I can just (require "cl-ppcre" 
"lib:cl-ppcre"), or something like that?

TIA for any help.

  - Stoney

On Jul 23, 2004, at 8:41 PM, Stonewall Ballard wrote:

> I'm trying to set up cl-ppcre so that I can "require" it in LispWorks. 
> This is the first time I've tried to do anything like this, so I may 
> be missing something obvious.
>
> I've been working through a series of problems:
>
> 1) "require" needs a pathname for the library
>
> 2) LW doesn't have a "mk" package for "mk:defsystem", so I deleted it 
> in the cl-ppcre.system file
>
> 3) Loading cl-ppcre.system produces an error: "lisp" was found where a 
> keyword symbol is expected. I don't see the cause of this.
>
> At this point, I decided to ask if anyone has massaged the cl-ppcre 
> package to work with LW 4.3.7, and can share it, or tell me what I 
> need to do to make this work.
>
> TIA,
>
>  - Stoney
>
> -- 
> Stonewall Ballard
> stoney@sb.org           http://stoney.sb.org/
>


Re: cl-ppcre in LispWorks?

On Jul 23, 2004, at 8:41 PM, Stonewall Ballard wrote:

> I'm trying to set up cl-ppcre so that I can "require" it in LispWorks. 
> This is the first time I've tried to do anything like this, so I may 
> be missing something obvious.
>
> I've been working through a series of problems:
>
> 1) "require" needs a pathname for the library

REQUIRE is not so well defined.


>
> 2) LW doesn't have a "mk" package for "mk:defsystem", so I deleted it 
> in the cl-ppcre.system file

You can get MK:DEFSYSTEM for the CLOCC (http://clocc.sf.net)  It is a 
portable defsystem utility that works on LW.


>
> 3) Loading cl-ppcre.system produces an error: "lisp" was found where a 
> keyword symbol is expected. I don't see the cause of this.
>
> At this point, I decided to ask if anyone has massaged the cl-ppcre 
> package to work with LW 4.3.7, and can share it, or tell me what I 
> need to do to make this work.

Looks like you just need the MK:DEFSYSTEM file.  in alternative you 
have to write a LW system specification

Cheers

--
Marco Antoniotti					http://bioinformatics.nyu.edu
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.


Re: cl-ppcre in LispWorks?

On Fri, 23 Jul 2004 21:17:18 -0400, Stonewall Ballard <sb.list@sb.org> wrote:

> How do I set this up so that I can just (require "cl-ppcre"
> "lib:cl-ppcre"), or something like that?

Some Lisp implementations provide "hooks" for REQUIRE so you can set
up your libraries to be loaded with REQUIRE. SBCL does, for example,
LispWorks doesn't.

However, it is possible to change the behaviour of LW's REQUIRE to do
what you want. Look at the source code of Debian's
common-lisp-controller[1] to see how this can be done.

HTH,
Edi.

[1] <http://www.cliki.net/common-lisp-controller>


Re: cl-ppcre in LispWorks?

On Sat, 24 Jul 2004 11:08:54 -0400, Stonewall Ballard <sb.list@sb.org> wrote:

> Unfortunately, "apt-get install common-lisp-controller" doesn't work
> for me, perhaps because I'm on OS X, not Debian.

Yes, it only works on Debian - and maybe on Gentoo (with emerge
instead of apt-get).

> I can't find a link to the CLC source anywhere either.

<http://packages.debian.org/unstable/devel/common-lisp-controller>

> I found asdf-install, though, so it might help. I didn't realize
> that there was a CPAN equivalent for Common Lisp.

Well, it's a long way to go until we have something like CPAN, but
it's a start... :)

Cheers,
Edi.


Updated at: 2020-12-10 08:55 UTC