如何在CentOS 5.2上创建FreeRADIUS 2.1.1-6 RPM软件包
这只是一个简短的教程,介绍如何在CentOS 5.2上创建RPM版本的FreeRADIUS 2.1.1-6。 此版本的FreeRADIUS尚未包含在CentOS 5存储库中。
从Koji获得FreeRADIUS 2.1.1-6 SRPM
从这里下载SRPM版本:
http://koji.fedoraproject.org/packages/freeradius/2.1.1/6.fc10/src/freeradius-2.1.1-6.fc10.src.rpm
现在安装srpm软件:
rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm
cd /usr/src/redhat/RPMS/SPECS
rpmbuild -bb freeradius.spec
确保您已安装以下依赖关系:
beecrypt-devel,sqlite-devel,unixODBC,unixODBC-devel,python-devel,pam-devel,elfutils-libelf-devel,elfutils-libelf-devel-static,rpm-devel,elfutils-devel,elfutils-devel-static, net-snmp-devel,mysql,cyrus-sasl-devel,mysql-devel,openldap-devel,gdbm-devel,libtool-ltdl-devel,postgresql,postgresql-devel
转到i386
目录:
cd /usr/src/redhat/RPMS/i386
安装二进制包
rpm -Uvh freeradius-libs-2.1.1-6.i386.rpm
rpm -Uvh freeradius-2.1.1-6.i386.rpm
rpm -Uvh freeradius-utils-2.1.1-6.i386.rpm
rpm -Uvh freeradius-mysql-2.1.1-6.i386.rpm
享受您的FreeRADIUS 2.1.1-6安装。