X11 is present in the Mac installation CD and can be found in optional software folder. X11 is required for X-Windows under ssh, matlab or any application which expects Linux environment. Darwin ports is available at darwinports.com and with the help of it, one can install lot of free software generally found in linux.
- For Programming
For fortran 90 compiler, two free options are available. One is gfortran, which is developed by GNU and another is g95, a GPL compatible Fortran 95 compiler. I mostly use gfortran and it is available as a binary package at http://hpc.sourceforge.net. g95 is available with darwin parts. To install it, use the command
sudo port install g95
The above command installs g95 from darwinports repositories. Replace g95 with any application you want. If you want to look at all the available packages with darwinports, browse darwinports.com under the section "port categories". Since apple uses intel processors now, intel compilers are also available for intel macs. Intel compilers are available free of cost for personal use on linux. But on mac, they cost money. I bought intel fortran compiler (IFC) and use it mainly instead of gfortran. IFC can be integrated with XCode and actually I used XCode+IFC for writing and running a couple of programs. But I didn't like XCode, so I stopped using it. I don't say its bad, but for the small programs I write, it is too much. Also for fortran, there is another IDE called Photron based on Eclipse, but it is still not feature rich for me. So I settled with command line compiling. But I still feel the lack of GUI debugging. There is command line debugging option of using gdb, but I never tried to learn it, after getting spoiled by MS-Visual Studio.
Since I settled for command line compilation, I needed a good editor. On linux, I used to use gedit and at first I was looking for similar type of editor. In fact I installed full blow gnome from darwinports just for gedit. For some reason (I forgot now) I didn't like gedit on mac, and started looking for alternative. And I found jedit. Oh boy, what an editor it is! It has lot of features and lot of customization, its like finding a gold mine. It has fortran 90 syntax support, keyword case conversion, anti-aliased fonts, different set of options (like fonts, size..etc ) for printing and viewing, tons of plugins.... Just install and explore its features.
- Document Creation
For dataplotting, gnuplot is available with aquaterm. You will see the results in aquaterm window, which has options to save the window to a file. One main advanteage with aquaterm is, it has the native aqua look. Install gnuplot from darwinports.
sudo port install gnuplot
All the dependencies are automatically resolved and all the required packages are installed. One word of caution, don't install aquaterm.app which is available separately. Install aquaterm from darwinports only. For cutting images, I use xv, which is also available from darwinports.
- Fun stuff and others
This concludes the topic: mac for scientific computation. Most of the info given here is gathered from google. All credit goes to original posters. Also what I wrote here is my way of doing things. There may be better alternatives. If you think there exists better way, please reply.


