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 http://www.lua.org/ftp/lua-5.2.1.tar.gz
[~/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 (http://naif.jpl.nasa.gov/naif/toolkit_C.html), and compile it:
[~/tmp]$ curl -O ftp://naif.jpl.nasa.gov/pub/naif/toolkit/C/MacIntel_OSX_AppleC_32bit/packages/cspice.tar.Z
[~/tmp]$ tar zxvf cspice.tar.Z
[~/tmp]$ cd cspice
[~/tmp/cspice]$ csh makeall.csh
[~/tmp/cspice]$ cd ..
Install "FLOW"
[~/tmp]$ curl -O https://darts.isas.jaxa.jp/planet/tools/flow/flow-1.3.tar.gz
[~/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
CAUTION !!
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