xiaohouye 2011-01-10
裸机RedHat as5.3 32位机器上,裸机上默认安装有boost1.33,gcc version 4.1.2 20080704 (Red Hat 4.1.2-44),java1.4,boost和gcc(目前知道的是gcc4.1.2版本以上,boost1.33以上KFS0.5版可以编译通过)符合KFS的版本要求,只需要下载并编译使用cmake来编译KFS,下载安装git来下载xfs,KFS依赖xfs的几个头文件,java1.4升级到java1.6即可。
裸机RedHat as4.3 32位机器上,裸机上默认安装有boost1.32,gcc version 3.4.5 20051201 (Red Hat 3.4.5-2),java1.4,KFS需要依赖boost1.33以上的库,支持c++0x的新特性的gcc版本,gcc需要升级,因为KFS0.5使用了c++0x的新特性,将java1.4升级到java1.6即可。
以下是在裸机RedHat as4.3 32位机器上编译KFS的全过程:
所有依赖程序都是当前开源社区里最新的源码编译而来!
cd /data/jrckkyy/
//java最新版1.6
wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u22-linux-i586-rpm.bin?BundledLineItemUUID=IFaJ_hCwj6oAAAEs35YAGU.b&OrderID=TOuJ_hCw1kQAAAEs0pYAGU.b&ProductID=XUuJ_hCwWmcAAAErMVJuIQy3&FileName=/jdk-6u22-linux-i586-rpm.bin
chmod +x jdk-6u22-linux-i586-rpm.bin
./jdk-6u22-linux-i586-rpm.bin
//cmake最新版2.8.3
wget http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
tar xvpfz cmake-2.8.3.tar.gz
cd cmake-2.8.3;./configure;make;
make install
//log4cpp最新版1.0
wget http://cdnetworks-kr-2.dl.sourceforge.net/project/log4cpp/log4cpp-1.0.x%20%28current%29/log4cpp-1.0/log4cpp-1.0.tar.gz
./configure;make;make install
//boost最新版1.44
wget http://219.239.26.18/download/7512305/8755633/3/gz/111/234/1284261323119_746/boost_1_44_0.tar.gz
tar xvpfz boost_1_44_0.tar.gz
cd boost_1_44_0
./bjam -a "-sTOOLS=gcc" "--includedir=/usr/include" "--libdir=/usr/lib/boost" "--build-type=complete" threading=multi "--layout=tagged" install
or
./bjam -a "-sTOOLS=gcc" stage "--build-type=complete" threading=multi "--layout=tagged" //编出库放在当前目录下的stage/lib中,方便管理
echo "/usr/lib/boost" >> /etc/ld.so.conf
export LD_LIBRARY_PATH=/usr/lib/boost