分类: LINUX
2012-02-05 19:28:20
1.编译环境
Centos 5.4
2.编译版本
heartbeat-2.1.3-3.el5.centos.src.rpm
3.依赖包(不一定全,总之报依赖什么就安装什么,直到不在报依赖错误)
libnet-1.1.5-1.el5 //需要网上下载rpm包安装或者源码安装
libnet-devel-1.1.5-1.el5 //需要网上下载rpm包安装或者源码安装
libtool-ltdl-1.5.22-6.1
libtool-1.5.22-6.1
libtool-ltdl-devel-1.5.22-6.1
OpenIPMI-libs-2.0.16-5.el5
OpenIPMI-2.0.16-5.el5
OpenIPMI-devel-2.0.16-5.el5
rpm-build-4.4.2.3-18.el5
4.编译命令
rpmbuild --rebuild heartbeat-2.1.3-3.el5.centos.src.rpm
编译完成后生成的文件如下:
[root@localhost i386]# ls *2.1.3*
heartbeat-2.1.3-3.i386.rpm heartbeat-gui-2.1.3-3.i386.rpm heartbeat-stonith-2.1.3-3.i386.rpm
heartbeat-debuginfo-2.1.3-3.i386.rpm heartbeat-ldirectord-2.1.3-3.i386.rpm
heartbeat-devel-2.1.3-3.i386.rpm heartbeat-pils-2.1.3-3.i386.rpm