Mac OS X v10.5 Leopard (i386) + 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 libxml2
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, 32bit) 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]$ LDFLAGS="-L/opt/local/lib" ./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
The default libxml2 in Mac OS X v10.5 Leopard does not contain a "xmlFirstElementChild" function which is used in wms_parser.c.
Installing libxml2 via MacPorts, and specifying LDFLAGS="-L/opt/local/lib" at compiling FLOW resolve this problem.

license and policy

darts c-soda isas jaxa