Getting Xtide working on Mac Server
Category: Linux Code
The objective was to move my xtide code (http://www.flaterco.com/xtide/xtide.html) which was running on an old Fedora Linux box and get it running on my Mac Mini Server running OSX Server 10.6.5 .
I contemplated using the Mac port put together by Lee-Ann Rucker (http://homepage.mac.com/lrucker/XTide/) put it didn't include the harmonics files from the entire world, so I decided to compile the native version.
(I already had Xcode and the SDK installed so you *MAY* need to do this first).
Essentially if you follow the instructions on the xtide site, although I did have to muck about with the compile switches to get it to compile.
I downloaded the following files from http://www.flaterco.com/xtide/files.html:
I did the installation under /usr/local as root.
Copy the harmonics files to
2. Install libtcd
read the README --> libtcd.html
(some minor warnings like :
I probably should have read and followed the message:
but didn't although things worked out in the end.
3. Install Xtide
Create the file /etc/xtide.conf and make the first line the location of your harmonics files:
I then had a series of failures - predominately aroung a png library failure doing just ./configure and the successful one is below.
the error was similar to:
configure: error: cannot find png.h; try setting CPPFLAGS.
I then just generated the graphs and data required for the site, set it up in a cron job and that's what I'm using on the site.