wxMaxima


Maxima and wxMaxima on Mac OS X

This page describes how I compile maxima (and gnuplot) so that I can use it with wxMaxima on Mac OS X.

Compiling maxima

wxMaxima can be used with maxima compiled with cmucl. To compile maxima using cmucl, do the following:

cd /usr/local
sudo tar xjf full-path-to-downloaded-binary
cd path-to-downloaded-file
tar xzf maxima-5.15.tar.gz
cd maxima-5.15
./configure --with-cmucl=/usr/local/bin/lisp
make
sudo make install
maxima
xmaxima

Compiling gnuplot

For inline plotting wxMaxima requires gnuplot with support for the png terminal. First install AquaTerm. Now compile gnuplot 4.2 from source. Before gnuplot, the following libraries need to be compiled (in the order given below):

Each of these needs to be compiled from source. Download and unarchive the sources. In Terminal go to the source directory and enter

configure
make
sudo make install

Now download the source for gnuplot 4.2 and compile and install it using above commands.

Configuration

I have the following in the file $HOME/.maxima/maxima-init.mac

gnuplot_command:"/usr/local/bin/gnuplot"$
draw_command:"/usr/local/bin/gnuplot"$
set_plot_option([gnuplot_term, aqua])$
set_plot_option([gnuplot_pipes_term, aqua])$

for plot2d, plot3d, draw2d and draw3d to work with AquaTerm.

MediaWiki Sourceforge.net Logo
© 2006-2007 Andrej Vodopivec