2008-08-21

Building Ice-3.3.0 on Red Hat 9

Here's my attempt at leaving a trail of breadcrumbs:

Yum:

- Installed Yum - had to edit /usr/bin/Yum to use the RPM Python version 2.2, not the updated version installed from tarball (needed for other apps).
- Added Yum repository (http://ftp.kddilabs.jp/Linux/packages/fedora.legacy/redhat/$releasever)
- Imported GPG keys.
- Did Yum update.
- Installed ntpl-devel, bzip2-devel

Found that RPM gcc version was too old, tried 3.3.1, then 4.3.1. Due to include header changes in the 4.3 series, rolled back to 4.1.2 (found this message to guide me: http://www.zeroc.com/forums/help-center/3794-version-gcc-does-binary-packages-use.html )

GCC installation:

- This takes a very long time. Found that using "--enable-languages=c++" option to ./configure cuts down processing time. Use this white paper: http://www.tellurian.com.au/whitepapers/multiplegcc.php. Installed to /usr/local/gcc/4.1.2 to avoid causing problems with other apps,
or kernel module updates.

Ice build:
- Unpacked Ice-3.3.0 tarball.
- Got a fair amount of help from zeroc.com - see http://www.zeroc.com/forums/help-center/3900-building-ice-3-3-0-red-hat-9-a.html
- Edited cpp/src/Makefile to remove unneeded packages (IceSSL and Glacier2). Had to restore Glacier2, due to dependencies from other modules. IceSSL build had an error, which I didn't bother with, since I don't need it for now.
- Quite a bit of fiddling to get needed libraries available:
-- Downloaded "Source Code for Third-Party Software" from http://www.zeroc.com/download.html#src_third_party - needed db-4.6, mcpp and mpfr.
-- Updated /etc/ld.so.conf: /usr/kerberos/lib, /usr/local/lib
-- export LD_LIBRARY_PATH=.:/usr/local/gcc/4.1.2/lib