Comments:
This is my configuration:
System: Fedora 20
|
Stack 3.2
|
|
Moodle 2.7.1
|
Maxima 31.3-1
|
clisp 2.49-12
|
Apache 2.4.9-2
|
MariaDB 5.5.38-3
|
php 5.5.14-1
|
Here are the steps required to install stack once the packages were installed. My main problem was connecting with maxima.
CAS 01:
I first run in vain using /usr/bin/maxima:
Platform: Linux
|
CAS Timeout 15 s
|
Maxima command: /usr/bin/maxima
|
RESULTS 01:
Uncached CAS call
CAS failed to return any evaluated expressions. Please check your connection with the CAS.CAS returned some data as expected, but there were errors.
CAS 02:
After installing clisp, I then try /usr/bin/maxima -l clisp -u 5.31.3 -q
Platform: Linux
|
CAS Timeout 15 s
|
Maxima command: /usr/bin/maxima -l clisp -u 5.31.3 -q
|
RESULTS 02:
Uncached CAS call
CAS returned data as expected. You have a live connection to the CAS.
But I received a bunch of warning
WARNING: DEFUN/DEFMACRO: redefining function TEX-MQUOTIENT in
/var/www/moodle/web/question/type/stack/stack/maxima/stacktex.lisp,
was defined in
/builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/mactex.fas
WARNING: DEFUN/DEFMACRO: redefining function TEX-PREFIX in
/var/www/moodle/web/question/type/stack/stack/maxima/stacktex.lisp,
was defined in
/builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/mactex.fas
WARNING: DEFUN/DEFMACRO: redefining function TEX-STRING in
/var/www/moodle/web/question/type/stack/stack/maxima/stacktex.lisp,
was defined in
/builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/mactex.fas
WARNING: DEFUN/DEFMACRO: redefining function TEX-DERIVATIVE in
/var/www/moodle/web/question/type/stack/stack/maxima/stacktex.lisp,
was defined in
/builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/mactex.fas
WARNING: DEFUN/DEFMACRO: redefining function TEX-D in
/var/www/moodle/web/question/type/stack/stack/maxima/stacktex.lisp,
was defined in
/builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/mactex.fas
WARNING: (SETF FIND-CLASS): redefining class MRING in
/usr/share/maxima/5.31.3/share/linearalgebra/mring.lisp, was defined
in /builddir/build/BUILD/maxima-5.31.3/src/binary-clisp/numth.fas
CAS 03:
Using the command
[root] /usr/bin/maxima -l clisp -u 5.31.3 -q
at the terminal, I then followed the optimization directives
(%i1) load(" var="" www="" moodle="" data="" stack="" maximalocal.mac");
WARNING: (same as above)
...
(%o0)"/var/www/moodle/data/stack/maximalocal.mac"
(%i1) :lisp (ext:saveinitmem "/var/www/moodle/data/stack/maxima-optimised.mem" :init-function #'user::run)
Bytes permanently allocated: 165,312
Bytes currently in use: 14,767,936
Bytes available until next GC: 3,691,704
14767936
3691704
165312
16
44510296
205000
(%i2) quit();
the file
-rw-r--r--. root root unconfined_u:object_r:httpd_sys_rw_content_t:s0 maxima-optimised.mem
was added to the folder /var/www/moodle/data/stack. I then search for lisp.run
[root] find / -name lis.run
/usr/lib64/maxima/5.31.3/binary-clisp/lisp.run
/usr/lib64/clisp-2.49+/base/lisp.run
and used it for my third attempt
Platform: Linux optimize
|
CAS Timeout 5 s
|
Maxima command: /usr/lib64/maxima/5.31.3/binary-clisp/lisp.run -q -M /var/www/moodle/data/stack/maxima-optimised.mem
|
gave
RESULTS 03:
Uncached CAS call
CAS returned data as expected. You have a live connection to the CAS.
And no more warning! Wonderfull!! I just tought I should include theses lines as I would have liked to found them somewhere on this site.
TEX-Filter: Finally a question
When I put \\( \\) as latex boundary, the text is not interpreted. But @ @ work! Should I use the later in the meantime. Thanks!