分类: LINUX
2007-03-22 09:35:32
1.获得软件包
ICE:
依赖的第三方包:
ICE for Python:
2.安装
·依赖的第三方包:
tar –zxvf ThirdParty-Sources-3.1.1.tar.gz
解压后出现如下文件:
bzip2-1.0.3.tar.gz db-4.3.29.NC.tar.gz expat-1.95.8.tar.gz
forms-1_0_5.zip looks-1_3_2.zip openssl-0.9.8b.tar.gz
其中多数包系统已具备,无需再安装,一般只需安装Berkeley DB:
tar –zxvf db-4.3.29.NC.tar.gz
cd db-4.3.29.NC/build_unix
../dist/configure –enable-cxx –enable-java
make
sudo make install
·ICE
tar –zxvf Ice-3.1.1.tar.gz
cd Ice-3.1.1
修改文件config/Make.rules第76行如下(注意去掉前面的“#”注释):
DB_HOME ?= /usr/local/BerkeleyDB.4.3
make
sudo make install
更新环境变量:
ICE_HOME /opt/Ice-3.1
PATH 添加 $ICE_HOME/bin
CPLUS_INCLUDE_PATH 添加 $ICE_HOME/include
LIBRARY_PATH 添加 $ICE_HOME/lib
LD_LIBRARY_PATH 添加 $ICE_HOME/lib
·ICE for Python
tar –zxvf IcePy-3.1.1.tar.gz
cd IcePy-3.1.1
make
sudo make install
l ICE for php5.5
tar xzvf IcePHP-3.1.1.tar.gz
cd IcePHP-3.1.1
cp –r src/ice /home/gaolimin/php-5.2.0/ext //php的解压位置
cd /home/gaolimin/php-5.2.0
rm-rf configure autom4te.cache //删除php的configure
./buildconf –force //创建支持ice的configure
下面编译php
./configure --prefix=/usr/local/php5.2.0 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib --with-png --with-jpeg=/usr/local/lib --with-freetype-dir=/usr/local/lib --enable-sockets --with-curl --enable-gd-imgstrttf --enable-gb-native-ttf --with-fft --with-sqlite --with-iconv --with-mbstring –with-ice=share,/opt/Ice-3.1.1 //php支持ice动态共享
make
make install
cp modules/ice.so /usr/local/php5.2.0/include/php/include/
在/usr/local/php5.2.0/lib/php.ini中添加
extension_dir=/usr/local/php5.2.0/include/php/include
extension=ice.so