50% developed

Maxima/Installation

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Dependencies[edit | edit source]

  • gnuplot,
  • tex
    • texinfo
    • texi2html
    • texlive-latex-recommended
  • GNU autotools
    • automake 1.9
    • autoconf2.13
  • tk 8.4.
  • lisp
    • sbcl ( sudo apt-get install sbcl)
  • libgmp3-dev
  • libreadline5-dev
  • libncurses5-dev
  • sharutils
  • libxmu-dev
  • libxaw7-dev
  • wxWidgets library for wxMaxima
    • libwxgtk3.0-dev
    • libwxbase3.0-dev
  • compiler is GNU g++ for wxWidgets library
  • build-essential
  • imagemagick
  • ibus-gtk
  • ibus-gtk3

Steps[edit | edit source]

  • Download and install ready made Maxima deb packages
    • from Ubuntu repositories ( old versions )
    • from other sites[1]
  • Compile your own maxima package[2][3]
  • compile maxima from sources ( without creating deb packages )

Now the best is a git method


From Ubuntu repositories[edit | edit source]

You can make use of :

  • Synaptic ( Graphical package manager)
  • apt-get.

In second case write in command line:[4]

sudo apt-get install maxima


This method can get old version which gets some trouble, like

 loadfile: failed to load /usr/share/maxima/5.37.2/share/draw/draw.lisp


Uninstall such Maxima version


 sudo apt-get remove maxima

From PPA[edit | edit source]

wxmaxima[edit | edit source]

From repositiories[5] by Istvan Balhota


sudo add-apt-repository ppa:blahota/wxmaxima
sudo apt-get update
sudo apt-get install wxmaxima

From sources[edit | edit source]

Before compilation, you should have all dependent packages


CVS[edit | edit source]

cd maxima
./bootstrap    # only if you downloaded the source code from cvs
./configure --enable-clisp   # or:   --enable-sbcl
make
make check
sudo make install
make clean

This procedure does not create a deb package.

Using git[edit | edit source]

maxima/xmaxima[edit | edit source]

If you have git and SBCL then : [6]

  git clone git://git.code.sf.net/p/maxima/code maxima
  cd maxima
  ./bootstrap
  ./configure --with-sbcl
  make


Now one can run it from inside the source directory.


cd maxima
./maxima-local

The result :

Maxima branch_5_30_base_104_ged70fb2_dirty http://maxima.sourceforge.net
using Lisp SBCL 1.0.45.0.debian
Distributed 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) 

Xmaxima can also be run :

cd ~/maxima
./xmaxima-local


or bash file :

#!/bin/bash

# save as a  in your home directory
# chmod +x m
# ./m

cd maxima
./xmaxima-local


wxMaxima is not present now.


Where is Maxima after standard ( as above) installation ?

  locate maxima-local

example result :


 ~/Pobrane/maxima-5.38.1/maxima-local.in
 ~/Pobrane/maxima-5.38.1/xmaxima-local.in
 ~/maxima/maxima-local
 ~/maxima/maxima-local.in
 ~/maxima/xmaxima-local
 ~/maxima/xmaxima-local.in
 ~/maxima/interfaces/xmaxima/Tkmaxima/maxima-local.tcl

Note that it is a different directory then after apt-get installation. One can have 2 ( or more ) versions of Maxima on the disk )

wxmaxima[edit | edit source]

 git clone https://github.com/wxMaxima-developers/wxmaxima

Problems[edit | edit source]

  • Open a terminal
  • type : sudo apt-get install gdb
  • after gdb is installed type : gdb wxmaxima
  • run and wait until it crashes
  • and type : backtrace

References[edit | edit source]