From: Alexander P. <po...@gm...> - 2014-03-17 15:51:54
|
Ok, KLUDGED via specifying (ql:quickload 'swank) in ~/.sbclrc, and then recompiling Maxima with these new settings. Now (swank:create-server :port xxx) works like charm. -------- Original Message -------- Subject: Re: [Maxima-discuss] maxima via quicklisp Date: Sun, 16 Mar 2014 13:21:22 +0000 From: Alexander Popolitov <po...@gm...> To: max...@li... Ok, I tried starting SWANK, that's the output I got: (%i8) load("startswank"); To load "swank": Load 1 ASDF system: swank ; Loading "swank" .;; ;; Error while compiling /home/popolit/quicklisp/dists/quicklisp/software/slime-20131211-cvs/swank-sbcl.lisp: ;; Don't know how to REQUIRE SB-INTROSPECT. ;; See also: ;; The SBCL Manual, Variable SB-EXT:*MODULE-PROVIDER-FUNCTIONS* ;; The SBCL Manual, Function REQUIRE ;; Aborting. ;; ; ; compilation unit aborted ; caught 4 fatal ERROR conditions loadfile: failed to load /home/popolit/.maxima/startswank.lisp -- an error. Entering the Maxima debugger. Enter ':h' for help. ~/.maxima/startswank.lisp contains: (ql:quickload '#:swank) (swank:create-server :port 56789) It ERRORed immediately, when there was REQUIRE instead of QL:QUICKLOAD, and then I decided to substitute and see, what happens. However, it seems, that REQUIRE is just somehow disabled in Maxima... On 03/15/2014 05:52 PM, Raymond Toy wrote: >>>>>> "Alexander" == Alexander Popolitov <po...@gm...> writes: > Alexander> Hello everyone, > Alexander> I'm very new to maxima, but have some experience with common lisp. > Alexander> So, I wonder, is it possible (and how hard it would be, approximately) > Alexander> to make maxima > Alexander> loadable directly via quicklisp, rather than downloading and compiling > Alexander> standalone executable? > > I believe there are several things preventing maxima from being in > quicklisp: > > 1. Maxima uses autoconf/automake to set up everything and uses make to > build everything.. This might be solvable. > 2. Maxima uses mk-defsys to compile and load lisp files. There is an > asdf file, but that's not currently used, but I believe it works. > 3. Documentation (online help) requires makeinfo and perl. > > For 2, the main issue is that gcl doesn't quite work with asdf and gcl > still needs to be suppported for windows. > > For 3, if you don't need the docs, then it's not a problem. There is > some work to build the documentation using lisp. This mostly works, > but has probably bit-rotted some. > > Alexander> Also, once made loadable via quicklisp, how hard is it to make it > Alexander> useable through SLIME? > Alexander> (with maxima syntax available, perhaps, via some read macro?) > > This already works. Rupert gave the following. Place the following in > ~/.maxima/startswank.lisp: > > (require :swank) > (swank:create-server :port 56789 :dont-close t) > > Then start Maxima and run load("startswank"). To connect, do M-x > slime-connect using the port specified above. > > You can continue to enter maxima commands in the terminal, but you can > also use slime and a lisp repl to interact with the running maxima. > > Ray > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss |