Here I will describe how to install imaxima.el on Mac OS X.
I just welcome any input from the Mac OS X users. Send comments to imaxima@mac.com.
This procedure does not require the install of Fink or MacPorts. Instead we install tex, ghostscript, emacs, and the lisp (I choose CMU common lisp here) who are distributed in package forms or binary forms. Only exception is Maxima itself. Since we don't have a Maxima binary package for Mac OS X, we need to compile the latest Maxima from the source tarball.
Here is the list of what we are going to install:
Carbon Emacs, BasicTeX, Ghostscript, CMU Common Lisp, Maxima, and breqn latex style package.
-
1.Carbon Emacs
Mr. Zentani is distributing a Carbon Emacs for Mac OS X. English and French home pages are provided at http://homepage.mac.com/zenitani/emacs-e.html as well as the Japanese one. After downloading the disk image file, you can mount it by double clicking the file. Then you drag and drop the Emacs application found in the mounted disk into your Applications folder. Note this includes both Intel and PPC binary.
Thanks to Zentani-san, imaxima-imath-0.98 is included as part of the Carbon Emacs's Lisp package collections. -
2.BasicTex.dmg
BasicTeX is a very minimal installation package of TeX / LaTeX for Mac OS X, created and distributed by Prof. Kock of University of Oregon. You can download the package from his web site. The installation is pretty simple, since very standard installation package is provided when you mount the downloaded disk image. Depending on your system, Intel / PPC binaries will be installed appropriately.
Things are installed in several places in the system area under /usr. If you are aware where things are installed, please consult his document. -
3.Ghostscript.dmg
This is a Intel / Power PC binary distribution package of the Ghostscript, also created by Prof. Kock of University of Oregon. Due to his request, this package is distributed from this site. You can download it here.
The installation is pretty simple. Double clicking the downloaded ghostscript.dmg, it is mounted and you will find Ghostscript.pkg. You can run this installer and the rest of the procedure is quite standard in terms of Mac OS X installation process.
gs commands are installed in /usr/local/bin. -
4.CMU Common lisp
CMU Common lisp is distributed from their web page. The PPC binary version and the Intel binary version are provided. You should download appropriate tarball based on the CPU type of your Macintosh. You need to open "Terminal.app" and type the following commands:
% cd /usr/local
% sudo tar xvfj "full path file name of the downloaded file".tar.bz2
The lisp command will be installed in /usr/local/bin. -
5.Maxima
Now the most important package Maxima needs to be downloaded and installed. You can download it from Sourceforge download site, choosing source tarball. The latest one as of writing (Sept. 2nd, 2007) is maxima-5.13.0.tar.gz.
% tar xvfz maxima-5.13.0.tar.gz
will create a directory named maxima-5.13.0 and expand all the files into the directory.
% cd maxima-5.13.0
% ./configure --enable-cmucl; make;
will compile all the source code of Maxima, and you get the up to date Maxima!!
% sudo make install
will install Maxima system under /usr/local. For instance, maxima command is installed in /usr/local/bin.
As maxima-5.14.0.tar.gz is distributed, you can use it instead. -
6.breqn097a package
This is a supplement of LaTeX style files to help breaking up large size formulas into multiple lines. The latest version is 0.97a and can be downloaded from here. You can click the link to start downloading. The following commands unzip and install the breqn package:
% unzip breqn097a.zip
% sudo mv breqn094 /usr/local/texlive/2007basic/texmf-local/tex/latex/local/
% sudo texhash
Then you can verify the installation by:
% kpsewhich breqn.sty
and see an appropriate path is returned. -
7.Adding a line in your .emacs file
Please start Carbon Emacs. In the *scratch* buffer, you may type exec-path[ctrl-j]. If the returned list does not contain "/usr/local/bin", you need to add the following line in the ~/.emacs file:
(push "/usr/local/bin" exec-path)
You may also want to check if "/usr/texbin" is in the returned list. If not, you need to add the followning line, too.
(push "/usr/texbin" exec-path)
You can restart Carbon Emacs so that the above lines take the effect. -
8.Done
You can start Carbon Emacs, then M-x imaxima to start imaxima. Enjoy!