FreeBSD 9.0 (amd64)


Install packages needed for "FLOW"
First, you have to run the following command as the administrator to install some packages.
# sysinstall
Choose Configure -> Package, then install the following packages.
astro
        cfitsio-3.250
ftp
        curl-7.21.3_2
graphics
        jpeg-8_3
        png-1.4.8
lang
        lua-5.1.4_6
textproc
        libxml2-2.7.8_1
important assuming the working directory is $HOME/tmp.
Install SPICE Toolkits for C
Download the SPICE toolkits for C (PC, Linux, gCC, 64bit) from the NAIF SPICE page (http://naif.jpl.nasa.gov/naif/toolkit_C.html).
NOTICE !! The linux version is used because NAIF doesn't provide SPICE Toolkit on FreeBSD.
[~/tmp]$ wget ftp://naif.jpl.nasa.gov/pub/naif/toolkit/C/PC_Linux_GCC_64bit/packages/cspice.tar.Z
[~/tmp]$ tar zxvf cspice.tar.Z
[~/tmp]$ cd cspice
[~/tmp/cspice]$ csh makeall.csh
[~/tmp/cspice]$ cd ..

Install "FLOW"

Set the environment variable at first.(following example is for tcsh)
[~/tmp]$ setenv LDFLAGS "-L/usr/local/lib -L/usr/lib -L/lib"
Then, compile FLOW in below:
[~/tmp]$ wget 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]$ ./configure --with-libjpeg=/usr/local --with-lua-prefix=/usr/local \
--with-lua-inc=/usr/local/include/lua51 --with-lua-suffix=-5.1 \
--with-cspice=$HOME/tmp/cspice --enable-wms
[~/tmp/flow-1.3]$ make
[~/tmp/flow-1.3]$ su
[~/tmp/flow-1.3]# make install

license and policy

darts c-soda isas jaxa