2007年11月15日 星期四

Running wxMaxima with Maxima under Macbook



Here is the list of what we are going to install:

maxima, clisp, AquaTerm, gnuplot, wxmac28, wxmaxima

1. Download clisp from http://clisp.sourceforge.net/
./configure ; make;
sudo make install

2. Download maxima from http://maxima.sourceforge.net/
./configure ; make;
sudo make install

The maxima command is installed in /usr/local/bin.

AquaTerm is a Mac OS X grahics renderer. It allows command line applications written in ObjC, C, FORTRAN, Lisp, Perl or Python to display vector graphics, text and images using a simple API. Adapters for gnuplot, PGPLOT, and PLplot exists as well.

3. Download AquaTerm from http://aquaterm.sf.net/
./configure ; make;
sudo make install

4. Download gnuplot from http://www.gnuplot.info/
Now compile gnuplot 4.2 from source.
./configure ; make;
sudo make install

The gnuplot command is installed in /usr/local/bin.

wxMaxima is a cross platform GUI for the computer algebra system maxima based on wxWidgets.

5. Download wxmac28 from http://www.wxwidgets.org/downloads/
./configure ; make;
sudo make install

6. Download wxmaxima from http://wxmaxima.sourceforge.net/

./configure --with-wx-config=/usr/bin/wx-config --with-xml-prefix=/usr --enable-unicode-glyphs --enable-printing --enable-dnd --disable-dependency-tracking

make wxMaxima.app

mv wxMaxima.app/Contents/MacOS/wxmaxima wxMaxima.app/Contents/MacOS/wxmaxima.bin

Now, you can find wxMaxima.app in the directory and click it to start. Add the following in the file ~/.maxima/maxima-init.mac for plot2d, plot3d, draw2d and draw3d to work with AquaTerm.

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

Enjoy!

沒有留言: