Compiling XTide on CentOS 5

The excellent XTide program can be used to generate tide (and, for some locations, current) predictions for many locations in the U.S. and overseas. Compiling it goes pretty smoothly according to the directions, but there were a few gotchas for me

There was a missing dependency relating to something in X11 for me, not listed in the instructions. If you get this error:

xtide.hh:27:27: error: X11/Intrinsic.h: No such file or directory
xtide.hh:28:23: error: X11/Shell.h: No such file or directory
xtide.hh:29:28: error: X11/StringDefs.h: No such file or directory
xtide.hh:30:25: error: X11/Xaw/Box.h: No such file or directory
…

then the following will fix it:

yum groupinstall "X Software Development"

Also, libtcd.so gets install into a nonstandard location, so you’ll need a symlink:

ln –s /usr/lib/libtcd.so.0 /usr/local/lib/libtcd.so.0

Enjoy.

Leave a comment

Your email address will not be published. Required fields are marked *