环境:
centos 6.4
gcc 4.8.2
make 3.81
ice 3.5.1
安装步骤:
1) 安装依赖库Mcpp
从www.zeroc.com 下载ThirdParty-Sources-3.5.1.tar.gz
$ tar xvf ThirdParty-Sources-3.5.1.tar.gz
$ cd ThirdParty-Sources-3.5.1
$ tar xvf mcpp-2.7.2.tar.gz
$ cd mcpp-2.7.2
$ patch -p0 < ../mcpp/patch.mcpp.2.7.2
$ ./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared
$ make && make install
2) 安装BerkeleyDB
$ tar db-5.3.21.NC.tar.gz
$ cd db-5.3.21.NC
$ patch -p0 < ../db/patch.db.5.3.21
$ cd build_unix
$ ../dist/configure --enable-cxx
$ make && make install
3) 安装Ice
下载Ice-3.5.1.tar.gz
$ tar xvf Ice-3.5.1.tar.gz
$ cd Ice-3.5.1/cpp
$ 根据环境修改config/Make.rules文件
$ make && make install