From: Stephen Gibberd
Subject: Problems installing cl-split-sequence debian package
Date: 
Message-ID: <a84a9f3a.0209050352.3daa2dfd@posting.google.com>
I tried installing this package, and all seemed to go well:

# apt-get install cl-split-sequence
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  cl-split-sequence 
0 packages upgraded, 1 newly installed, 0 to remove and 73  not upgraded.
Need to get 0B/6982B of archives. After unpacking 34.8kB will be used.
Selecting previously deselected package cl-split-sequence.
(Reading database ... 37110 files and directories currently installed.)
Unpacking cl-split-sequence (from .../cl-split-sequence_20011114-1_all.deb) ...
Setting up cl-split-sequence (20011114-1) ...
recompiling package split-sequence for implementation cmucl-normal
/usr/sbin/register-common-lisp-source: Package split-sequence installed

Then, following the man page, I tried the following:
Loaded subsystems:
    Python 1.0, target Intel x86
    CLOS based on PCL version:  September 16 92 PCL (f)
* (require :split-sequence)

; Loading #p"/usr/share/common-lisp/systems/split-sequence.system".
(#<FILE: split-sequence>)
* (split-sequence #\; "a;;b;c")

Warning: This function is undefined:
  SPLIT-SEQUENCE

Error in KERNEL:%COERCE-TO-FUNCTION:  the function SPLIT-SEQUENCE is undefined.

Is there something I'm missing?

Thanks, Stephen

From: Christophe Rhodes
Subject: Re: Problems installing cl-split-sequence debian package
Date: 
Message-ID: <sqlm6gk5tw.fsf@lambda.jcn.srcf.net>
·······@un.org (Stephen Gibberd) writes:

> I tried installing this package, and all seemed to go well:
> 
> Then, following the man page, I tried the following:

Ayuh. Sorry.

> Loaded subsystems:
>     Python 1.0, target Intel x86
>     CLOS based on PCL version:  September 16 92 PCL (f)
> * (require :split-sequence)
> 
> ; Loading #p"/usr/share/common-lisp/systems/split-sequence.system".
> (#<FILE: split-sequence>)
> * (split-sequence #\; "a;;b;c")
> 
> Warning: This function is undefined:
>   SPLIT-SEQUENCE
> 
> Error in KERNEL:%COERCE-TO-FUNCTION:  the function SPLIT-SEQUENCE is undefined.
> 
> Is there something I'm missing?

Yes... the function is available in the SPLIT-SEQUENCE package, which
isn't used by the CL-USER package by default.  So you have to use it
with an explicit package prefix:

* (split-sequence:split-sequence #\; "a;b;;c")

(see also DEFPACKAGE and USE-PACKAGE documentation in the HyperSpec)

Cheers,

Christophe
-- 
Jesus College, Cambridge, CB5 8BL                           +44 1223 510 299
http://www-jcsu.jesus.cam.ac.uk/~csr21/                  (defun pling-dollar 
(str schar arg) (first (last +))) (make-dispatch-macro-character #\! t)
(set-dispatch-macro-character #\! #\$ #'pling-dollar)
From: Friedrich Dominicus
Subject: Re: Problems installing cl-split-sequence debian package
Date: 
Message-ID: <87ofbcpr3s.fsf@fbigm.here>
·······@un.org (Stephen Gibberd) writes:
> 
> ; Loading #p"/usr/share/common-lisp/systems/split-sequence.system".
> (#<FILE: split-sequence>)
> * (split-sequence #\; "a;;b;c")
> 
> Warning: This function is undefined:
>   SPLIT-SEQUENCE
> 
> Error in KERNEL:%COERCE-TO-FUNCTION:  the function SPLIT-SEQUENCE is undefined.
> 
> Is there something I'm missing?
Well I think you missed the following
(defpackage "SPLIT-SEQUENCE"
  (:use "CL")
  (:nicknames "PARTITION")
  (:export "SPLIT-SEQUENCE" "SPLIT-SEQUENCE-IF" "SPLIT-SEQUENCE-IF-NOT"
	   "PARTITION" "PARTITION-IF" "PARTITION-IF-NOT")
  (:documentation "The SPLIT-SEQUENCE package provides functionality for Common Lisp sequences analagous to Perl's split operator."))

I do not see any (use-package  in your code. If you want it than you
have to write
slit-sequence:split-sequence 
Another not too bad ida is using apropos to find out why a thing is
not there where you expect it.

Regards
Friedrich
From: Stephen Gibberd
Subject: Re: Problems installing cl-split-sequence debian package
Date: 
Message-ID: <a84a9f3a.0209051930.3a4c83e6@posting.google.com>
Great -thanks a lot. It work now.