I updated RaspiOS Bookworm 12.12 to Trixie 13.2 on my RPi5 as described:
viewtopic.php?t=392376
Everything went well, with one exception – after entering the 'maxima' command in the terminal, I get the following message:
Packages installed from the official repository:
Since I couldn't find any solution online, I decided to compile CAS Maxima from the source:
https://sourceforge.net/projects/maxim ... 1-source/
This solved my problem – Maxima compiled this way runs regardless of whether I'm using kernel '2712' or 'kernel8' (Maxima had a problem with '2712' in Bookworm).
If anyone's interested, here's how I did it:
Run all commands as a regular user!
We check if we have the necessary dependencies:
We configure and compileWe run and check the operation
If you installed 'wxmaxima', run it and select the 'maxima-local' file, i.e.,
Click: Edit – Preferences
On the left: "Maxima", on the right: "Maxima Location".
Enlarge this window because not everything is visible.
Click "User specified" – "Open".
Sequentially, select the 'maxima', maxima-5.48.1' directories, and finally the 'maxima-local' file – "Open".
OK.
Close it (it will ask if you want to save the open spreadsheet; answer: No) and run "wxmaxima" again.
After launching, enter:and press Shift+Enter.
DONE.
NOTE.
1. When moving the compilation directory to another RPi (the same version of 'sbcl' must be installed),
adjust the paths (if necessary) in the 'maxima-local' and xmaxima-local' files.
2. As you can see, the 'make install' command is not required for proper operation.
3. You could also consider which files in the compilation directory are necessary and which are no longer needed – but that's probably a separate topic.
4. In Mathematica the equivalent of diff(sin(2*x),x) is D[Sin[2*x],x], and elliptic_e(2.0,0.75) is EllipticE[2.0,0.75].
I welcome any constructive comments.
Best regards
viewtopic.php?t=392376
Everything went well, with one exception – after entering the 'maxima' command in the terminal, I get the following message:
Maxima doesn't start (wxMaxima doesn't work either).
The assertion !madvise(m,p2,MADV_HUGEPAGE) on line 67 of o/msbrk.c in function msbrk failed: Invalid argument
Packages installed from the official repository:
Code:
$ dpkg -l | grep maximaii maxima 5.47.0-7 arm64 Computer algebra system -- base systemii maxima-doc 5.47.0-7 all Computer algebra system -- documentationii maxima-share 5.47.0-7 all Computer algebra system -- extra codeii maxima-src 5.47.0-7 all Computer algebra system -- source codeii maxima-test 5.47.0-7 all Computer algebra system -- test suiteii wxmaxima 24.02.1-1+b3 arm64 GUI for the computer algebra system Maximaii xmaxima 5.47.0-7 arm64 Computer algebra system -- x interfacehttps://sourceforge.net/projects/maxim ... 1-source/
This solved my problem – Maxima compiled this way runs regardless of whether I'm using kernel '2712' or 'kernel8' (Maxima had a problem with '2712' in Bookworm).
If anyone's interested, here's how I did it:
Run all commands as a regular user!
Code:
$ mkdir maxima$ cd maxima/$ wget https://sourceforge.net/projects/maxima/files/Maxima-source/5.48.1-source/maxima-5.48.1.tar.gz$ gzip -tv maxima-5.48.1.tar.gz# we test the correctness of the archive$ tar xpf maxima-5.48.1.tar.gz# After unpacking, it takes up approximately 120 MiB$ cd maxima-5.48.1/Code:
$ dpkg -l make gawk imagemagick texinfo tk autoconf ibus-gtk3 gcc tex-common sbcl$ dpkg -l | grep gnuplotCode:
$ ./configure --enable-sbcl$ nproc# will display the number of processor cores, e.g. 4, we will enter this number into make$ make -j4# took on RPi5: 1 min 27 s$ make check# took 6 min 15 s on RPi5; after compilation, the directory takes up approx. 202 MiB$ cat tests/test-suite.log# It should be fine: # SKIP: 0, # XFAIL: 0, # FAIL: 0, # XPASS: 0, # ERROR: 0Code:
$ ./maxima-localMaxima 5.48.1 https://maxima.sourceforge.iousing Lisp SBCL 2.5.2.debianDistributed under the GNU Public License. See the file COPYING.Dedicated to the memory of William Schelter.The function bug_report() provides bug reporting information.(%i1) diff(sin(2*x),x);(%o1) 2 cos(2 x)(%i2) elliptic_e(2.0,0.75);(%o2) 1.443433069099462(%i3) elliptic_e(2.0,-0.75);(%o3) 2.393704208603658(%i4) quit();Click: Edit – Preferences
On the left: "Maxima", on the right: "Maxima Location".
Enlarge this window because not everything is visible.
Click "User specified" – "Open".
Sequentially, select the 'maxima', maxima-5.48.1' directories, and finally the 'maxima-local' file – "Open".
OK.
Close it (it will ask if you want to save the open spreadsheet; answer: No) and run "wxmaxima" again.
After launching, enter:
Code:
wxbuild_info();DONE.
NOTE.
1. When moving the compilation directory to another RPi (the same version of 'sbcl' must be installed),
adjust the paths (if necessary) in the 'maxima-local' and xmaxima-local' files.
2. As you can see, the 'make install' command is not required for proper operation.
3. You could also consider which files in the compilation directory are necessary and which are no longer needed – but that's probably a separate topic.
4. In Mathematica the equivalent of diff(sin(2*x),x) is D[Sin[2*x],x], and elliptic_e(2.0,0.75) is EllipticE[2.0,0.75].
I welcome any constructive comments.
Best regards
Statistics: Posted by zl23rpi — Thu Nov 27, 2025 8:31 am