From: Pierre R. Mai
Subject: Re: motifd
Date: 
Message-ID: <87vgse57hu.fsf@orion.bln.pmsf.de>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

> Can you help me ?
> I'm trying to run simple program with
> (defun test ()
>   (run-motif-application 'test-init))
> The test-init function defined properly.
> I've got the error:
> 
> (test)
> Invoking debugger...
> 
> 
> Error in function RUN-PROGRAM:  No such program: #p"library:motifd"
> 
> I'm using CMUCL

What does

(ext:search-list "library:")

yield?

It should probably yield
(#p"/usr/lib/cmucl/")

That's where CMU CL will look for auxiliary binaries such as motifd,
and that's where you need to put the stuff from the lib directory of
the binary packages, i.e. with the official 18c release you get two
tar archives with the following contents:

bin/lisp
bin/sample-wrapper
lib/lisp.core
lib/config
lib/config.lisp
lib/load-foreign.csh
lib/site-init.lisp
lib/subsystems/gray-streams-library.x86f
man/man1/cmucl.1
man/man1/lisp.1

and

lib/XKeysymDB
lib/fonts/8x13u.snf
lib/fonts/fonts.dir
lib/hemlock11.cursor
lib/hemlock11.mask
lib/inspector.help
lib/mh-scan
lib/motifd
lib/spell-dictionary.bin
lib/subsystems/hemlock-library.x86f
lib/subsystems/clx-library.x86f
lib/subsystems/clm-library.x86f

Put the bin stuff into /usr/bin/, the lib stuff into /usr/lib/cmucl/
and the man/man1 stuff into /usr/man/man1.

Then everything should work correctly...

Regs, Pierre.

-- 
Pierre R. Mai <····@acm.org>                    http://www.pmsf.de/pmai/
 The most likely way for the world to be destroyed, most experts agree,
 is by accident. That's where we come in; we're computer professionals.
 We cause accidents.                           -- Nathaniel Borenstein

From: Marco Antoniotti
Subject: Re: motifd
Date: 
Message-ID: <y6c7l4tn7zu.fsf@octagon.mrl.nyu.edu>
"Pierre R. Mai" <····@acm.org> writes:

> "Vladimir V. Zolotych" <······@eurocom.od.ua> writes:
> 
> > Can you help me ?
> > I'm trying to run simple program with
> > (defun test ()
> >   (run-motif-application 'test-init))
> > The test-init function defined properly.
> > I've got the error:
> > 
> > (test)
> > Invoking debugger...
> > 
> > 
> > Error in function RUN-PROGRAM:  No such program: #p"library:motifd"
> > 
> > I'm using CMUCL
> 
> What does
> 
> (ext:search-list "library:")
> 
> yield?
> 
> It should probably yield
> (#p"/usr/lib/cmucl/")

True, unless the installation sits elsewhere and the shell env
variable CMUCLLIB point there.  Just to be fussy.

I'd say that the problem may be that Vladimir did not download the
'cmucl*-extra*' tarball where 'motifd' is.

One more testimonial for the 'one-full-tarball-is-better' argument :)
(Sorry, I couldn't resist)

Cheers

-- 
Marco Antoniotti =============================================================
NYU Bioinformatics Group			 tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                          fax  +1 - 212 - 995 4122
New York, NY 10003, USA				 http://galt.mrl.nyu.edu/valis
             Like DNA, such a language [Lisp] does not go out of style.
			      Paul Graham, ANSI Common Lisp
From: Pierre R. Mai
Subject: Re: motifd
Date: 
Message-ID: <87y9x921om.fsf@orion.bln.pmsf.de>
Marco Antoniotti <·······@cs.nyu.edu> writes:

> > It should probably yield
> > (#p"/usr/lib/cmucl/")
> 
> True, unless the installation sits elsewhere and the shell env
> variable CMUCLLIB point there.  Just to be fussy.

True, that's why I said "probably", and asked him what his
implementation returns, so as to accomodate CMUCLLIB and/or deviant
CMUCL versions (like the PMSF internal release, which uses
/usr/local/lib/cmucl/ per default). ;)

> I'd say that the problem may be that Vladimir did not download the
> 'cmucl*-extra*' tarball where 'motifd' is.

To be fussy, too: This probably isn't the problem, because if he
didn't download the cmucl-*extra* tarball, he wouldn't have CMUCL-CLM
either, and invoking run-motif-application would raise an undefined
function error, and not something about motifd missing...  Unless of
course he compiled CLM himself, but then he'd probably know about
motifd etc., too.  ;)

Regs, Pierre.

-- 
Pierre R. Mai <····@acm.org>                    http://www.pmsf.de/pmai/
 The most likely way for the world to be destroyed, most experts agree,
 is by accident. That's where we come in; we're computer professionals.
 We cause accidents.                           -- Nathaniel Borenstein
From: Marco Antoniotti
Subject: Re: motifd
Date: 
Message-ID: <y6cu27xlo82.fsf@octagon.mrl.nyu.edu>
"Pierre R. Mai" <····@acm.org> writes:

> Marco Antoniotti <·······@cs.nyu.edu> writes:

	..

> > I'd say that the problem may be that Vladimir did not download the
> > 'cmucl*-extra*' tarball where 'motifd' is.
> 
> To be fussy, too: This probably isn't the problem, because if he
> didn't download the cmucl-*extra* tarball, he wouldn't have CMUCL-CLM
> either, and invoking run-motif-application would raise an undefined
> function error, and not something about motifd missing...  Unless of
> course he compiled CLM himself, but then he'd probably know about
> motifd etc., too.  ;)

Ooops.  You are right. :)

Cheers

-- 
Marco Antoniotti =============================================================
NYU Bioinformatics Group			 tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                          fax  +1 - 212 - 995 4122
New York, NY 10003, USA				 http://galt.mrl.nyu.edu/valis
             Like DNA, such a language [Lisp] does not go out of style.
			      Paul Graham, ANSI Common Lisp
From: Pierre R. Mai
Subject: Re: motifd
Date: 
Message-ID: <87k88t1i1x.fsf@orion.bln.pmsf.de>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

> * (ext:search-list "library:")
> 
> (#p"/usr/lib/cmucl/")

That seems correct.

> But if I run ILISP
> *(ext:search-list "library:")
> (#p"/home/vlz")
> Which settings I should change to fix that ?

That seems strange. ILISP shouldn't fiddle with library:.  You might
want to look at your Emacs files and/or the ILISP .el and lisp files
to find out where either (ext:search-list "library:") is set via setf
or the environment variable CMUCLLIB is set...

> Another difficulty
> Now debugger is ok (the debugger window appears) but I still
> cannot run Motif application (that mentioned as "brief example" in
> CMUCL Motif Toolkit)
> The error debugger displays is
> ...function run-motif-application undefinded

All of the clm functions are accessible in the CLM package.  Unless
your current package uses the CLM package (e.g. via use-package or a
:use clause in defpackage), you need to qualify all symbols located in
the CLM package, e.g. clm:run-motif-application instead of
run-motif-application.  You might want to read up about packages
etc. in a CL tutorial of your choice.  If you just want to play around
a bit with CLM, then just try

(use-package :CLM)

in a freshly started CMUCL, and things should work without the need
for package prefixes.

Regs, Pierre.

-- 
Pierre R. Mai <····@acm.org>                    http://www.pmsf.de/pmai/
 The most likely way for the world to be destroyed, most experts agree,
 is by accident. That's where we come in; we're computer professionals.
 We cause accidents.                           -- Nathaniel Borenstein
From: Marco Antoniotti
Subject: Re: motifd
Date: 
Message-ID: <y6chf3ww81c.fsf@octagon.mrl.nyu.edu>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

> "Pierre R. Mai" wrote:
> 
> > ...or the environment variable CMUCLLIB is set...
> 
> You're right, now that is ok.
> 
> > (use-package :CLM)
> 
> This invokes the debugger, some details follows...
> 
> CMU Common Lisp release x86-linux 2.4.22  3 October 2000 build 1154,
> running on Olla
> ;;.....................
> Loaded subsystems:
>     Python 1.0, target Intel x86
>     CLOS based on PCL version:  September 16 92 PCL (f)
>     CLX X Library MIT R5.02
>     Motif toolkit and graphical debugger 1.0
>     Defsystem Mar 13 1995
> ;;.............................
> * (ext:search-list "library:")
> (#p"/usr/lib/cmucl/")
> *  (find-package :clm)
> NIL
> * (find-package :xlib)
> #<The XLIB package, 1415/2372 internal, 560/590 external>
> *

The CLM package does not come with CMUCL, you need to check the
"TOOLKIT" (nickname "XT") package which contains things like
RUN-MOTIF-APPLICATION.

Cheers

-- 
Marco Antoniotti =============================================================
NYU Bioinformatics Group			 tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                          fax  +1 - 212 - 995 4122
New York, NY 10003, USA				 http://galt.mrl.nyu.edu/valis
             Like DNA, such a language [Lisp] does not go out of style.
			      Paul Graham, ANSI Common Lisp