From: Donald W. <dwi...@bo...> - 2013-02-08 17:36:42
|
Hi again and apologies for the cc to Sam. I won't do that again. I installed CLISP and NEW-CLX through the Ubuntu package manager. I find the demo programs in the following location on my machine /usr/share/doc/clisp-module-clx/demos ;;----- I also find that my CLISP is not reading from a file named ~/CLISPRC.LISP, when CLISP is invoked. When I add `(require "clx") to that file, CLX is not loaded. However, when I add `(require "clx") to my ~/.clisprc file, CLX _is_ loaded on invoking CLISP Proof of this is found only after adding `(require "clx")' to my ~/.CLISPRC file. Only after doing this, when I invoke (list-all-packages) inside CLISP I find the following in the output. #<PACKAGE XLIB> #<PACKAGE XPM> ;;----- But I'm still lost at how to run the demos. I can load the individual files from the above-noted directory once inside CLISP, but when I try to invoke a demo by calling its function name inside CLISP (for example `(clclock)' but every other demo program too) it indicates that this is an undefined function. When I try either of the below to load the demos into CLISP from the terminal, it throws an error, noted after each of the command lines below invoke clisp with --> $ clisp -i clx-demos error produced inside clisp --> *** - LOAD: A file with name clx-demos does not exist invoke clisp with --> $ clisp -i -x '(run-all-demos)' error produced inside clisp --> *** - EVAL: undefined function RUN-ALL-DEMOS -- and then it kicks me out of CLISP. ;;----- So, i've got a little bit of progress here and that's a good thing. Not out of the woods, yet, though. Thanks for your efforts on my behalf. Best, _don On Fri, Feb 8, 2013 at 9:42 AM, Sam Steingold <sd...@gn...> wrote: >> * Donald Winiecki <qjvavrpxv@obvfrfgngr.rqh> [2013-02-07 20:32:32 -0700]: >> >> My eventual goal is to write a LOGO-like environment in Lisp. CLX >> appears to be an appropriate tool for drawing lines and adding colour >> in various ways. > > probably. > >> I notice that some of these demos are written by Sam Steingold -- >> principal in this list. Is it safe to say I can ask for assistance >> here? (The CLX list seems pretty quiet.) > > yes, this is the proper place for clisp-related questions. > http://stackoverflow.com/questions/tagged/clisp is also okay. > (please do not CC this to me though). > >> I'm running Ubuntu 12.4, CLISP (2.49) and CLX that come with this OS. > > did you do > # aptitude install clisp-module-clx > >> I invoke CLISP under SLIME through M- M-x, with the following: >> >> "/usr/bin/clisp" "-I" >> >> My CLISPRC. is as follows: > > it should be ~/.clisprc.lisp > (http://clisp.org/impnotes/faq.html#faq-rc) > >> I wonder if I can load CLX from a line in CLISPRC.? If so, would this >> make access to CLX demos and functions more certain? > > (require "clx") ; http://clisp.org/impnotes/faq.html#faq-modules > > this will load the CLX, but not the demos. > I don't think they are distributed by ubuntu. > > -- > Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 > http://www.childpsy.net/ http://palestinefacts.org > http://memri.org http://camera.org http://www.memritv.org > If you're being passed on the right, you're in the wrong lane. |