Maxima: Compiling with gcl, cmucl, sbcl, clisp.



On 7/3/07, Vadim V. Zhytnikov <vvzhy at mail.ru> wrote:

> > cfrangos at omega:~/gnu> sbcl
> > mmap: Cannot allocate memory
> > ensure_space: failed to validate 8589869056 bytes at 0x1000000000
> > (hint: Try "ulimit -a"; maybe you should increase memory limits.)

> No surprise. On 64 bit sbcl allocates about 8.5Gb of virtual memory
> while on 32 bit it allocates just about 1.5Gb.

I strongly suspect the above error is a consequence of a security
policy (not something to do with actual memory use). On my system,
echo 0 > /proc/sys/kernel/exec-shield
(executed as superuser) quiets the error, but other systems
may require something else. Searching comp.lang.lisp or the
sbcl-devel archives might find some other ideas.

> > If I enter the full path then Maxima 5.12 sbcl starts correctly (using bash
> > and tcsh). However, at the Maxima prompt I cannot recall the previous
> > instructions using the arrow keys. Not clear how to remedy this.
>
> If properly installed Maxima comes with special script rmaxima
> which is just maxima+line editing capabilities and can be used
> in combination with cmucl and sbcl version of Maxima.
> rmaxima requires rlwrap.

For the record, rlwrap can be downloaded from:
http://utopia.knoware.nl/~hlub/uck/rlwrap

HTH
Robert Dodier