1.1编译环境
安装gcc gcc-c++ make cmake(在admin machine上,放置rpm包的文件里依次执行下面的语句):
sudo rpm -ivh cpp-4.4.6-4.el6.x86_64.rpm --replacefiles
sudo rpm -ivh libgcc-4.4.6-4.el6.x86_64.rpm --replacefiles
sudo rpm -ivh libgomp-4.4.6-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh gcc-4.4.6-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh libstdc++-4.4.6-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh libstdc++-devel-4.4.6-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh gcc-c++-4.4.6-4.el6.x86_64.rpm
sudorpm -ivh make-3.81-20.el6.x86_64.rpm --replacefiles
sudorpm -ivh cmake-2.6.4-5.el6.x86_64.rpm --replacefiles
1.2依赖包
安装zlibzlib-devel openssl openssl-devel(在admin machine上,放置rpm包的文件里依次执行下面的语句):
sudorpm -ivh zlib-1.2.3-27.el6.x86_64.rpm
sudorpm -ivh zlib-devel-1.2.3-27.el6.x86_64.rpm
sudorpm -ivh keyutils-libs-1.4-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh keyutils-libs-devel-1.4-4.el6.x86_64.rpm
sudorpm -ivh libcom_err-1.41.12-12.el6.x86_64.rpm --replacefiles
sudorpm -ivh libcom_err-devel-1.41.12-12.el6.x86_64.rpm
sudorpm -ivh libsepol-2.0.41-4.el6.x86_64.rpm --replacefiles
sudorpm -ivh libsepol-devel-2.0.41-4.el6.x86_64.rpm
sudorpm -ivh libselinux-2.0.94-5.3.el6.x86_64.rpm --replacefiles
sudorpm -ivh libselinux-devel-2.0.94-5.3.el6.x86_64.rpm
sudorpm -ivh krb5-libs-1.9-33.el6.x86_64.rpm --replacefiles
sudorpm -ivh krb5-devel-1.9-33.el6.x86_64.rpm
sudo rpm