石田修二のホームページ > コンピュータメモ > wxMaxima >
How to install
ここでは 同梱されている Maxima, wxMaxima, gnuplot のインストール方法について説明します。
タイトルにもなっている内容については、拙ブログ「Maxima一式インストール」(2013年1月3日)でも少し触れています。
1. Installing Maxima
- Drag 'Maxima.app' into your Applications folder.
- To test it: run Maxima.app from your Applications folder by double-clicking on it. A Terminal should pop up with a working Maxima program. You can try some simple calculations like '1+1;' or run the test suite by enterning 'run_testsuite();'. No unexpected errors should occur.
- Quit Maxima by entering 'quit();'.
2. Installing wxMaxima
- Drag 'wxMaxima.app' into your Applications folder.
- Install jsMath fonts by double clicking on all the fonts in the 'jsMath TeX fonts' folder in the dmg and clicking on 'Install Font'.
- Configure wxMaxima by running it from your Applications folder and opening the wxMaxima->Preferences... dialog. Make sure that the 'Maxima program' field points to your copy of Maxima.app.
- If the 'Use jsMath fonts' checkbox is grayed out even though you've installed the fonts, you can try restarting your computer. jsMath fonts are used for nicer (TeX-like) integral signs, summation signs and other symbols.
- If wxMaxima found Maxima.app, then you should be able to run calculations (enter '1+1' and press shit-enter). Plotting requires GNUPLOT.
3. Installing GNUPLOT
- Drag 'Gnuplot.app' into your Applications folder.
- To test Gnuplot: double-click on your copy located in Applications folder. A Terminal should pop up with the Gnuplot's prompt.
- If Gnuplot complains about missing libraries (X11 related), you need to install X11 from Mac OS X Install Disc 1 (tested on Tiger). Double click on the 'Optional Installs.mpkg' (you have to scroll down in the Finder window) and install X11. It's best to run System Update afterwards, so that X11 is updated to the latest version.
- If Gnuplot gives an error regarding 'DISPLAY :0.0', then run the following command in the Terminal:
echo 'export DISPLAY=:0' >> .bashrc
Test Gnuplot: First open the X11.app located in /Applications/Utilities/X11.app. Then run Gnuplot.app. A Terminal with gnuplot prompt should appear. Run the following commands to test X11 (interactive) terminal and Aquaterm (non-interactive) terminal:
set term x11
plot sin(x)
splot sin(x*y)
set term aqua
plot sin(x)
splot sin(x*y)
quit
Maxima needs to know where Gnuplot is located in order to use it for plotting. If you already have a 'maxima-init.mac', edit it, otherwise enter these commands into the Terminal:
mkdir .maxima
cd .maxima
echo 'gnuplot_command:"/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot"$' >> maxima-init.mac
echo 'set_plot_option([gnuplot_term, aqua])$' >> maxima-init.mac
If you want to use X11 terminal by default, run this instead of the previous command:
echo 'set_plot_option([gnuplot_term, x11])$' >> maxima-init.mac
リンクはご自由にどうぞ。
【コンピュータメモ】 【Maxima】