Mac OS X v10.7 Lion (x86_64) + MacPorts 2.1.2

Install packages needed for "FLOW"

First, you have to run the following commands as the administrator to install some packages.
[~]$ export PATH=/opt/local/bin:$PATH
[~]$ sudo port install pkgconfig libpng jpeg cfitsio
Install Lua
Lua must be installed from a source code tar-ball because header files are not installed via MacPorts.

important assuming the working directory is $HOME/tmp.

[~/tmp]$ curl -O
[~/tmp]$ tar zxvf lua-5.2.1.tar.gz
[~/tmp]$ cd lua-5.2.1
[~/tmp/lua-5.2.1]$ make macosx
[~/tmp/lua-5.2.1]$ sudo make install INSTALL_TOP=/opt/local
[~/tmp/lua-5.2.1]$ cd ..

Install SPICE Toolkits for C
Download the SPICE toolkits for C (Mac/Intel, OSX, Apple C, 64bit) from the NAIF SPICE page (, and compile it:
[~/tmp]$ curl -O
[~/tmp]$ tar zxvf cspice.tar.Z
[~/tmp]$ cd cspice
[~/tmp/cspice]$ csh makeall.csh
[~/tmp/cspice]$ cd ..

Install "FLOW"
[~/tmp]$ curl -O
[~/tmp]$ tar zxvf flow-1.3.tar.gz
[~/tmp]$ cd flow-1.3
[~/tmp/flow-1.3]$ ./configure --with-lua-prefix=/opt/local --with-libjpeg=/opt/local --with-cfitsio=/opt/local \
--with-cspice=$HOME/tmp/cspice --enable-wms
[~/tmp/flow-1.3]$ make
[~/tmp/flow-1.3]$ sudo make install

license and policy

darts c-soda isas jaxa