How To Create A FreeRADIUS 2.1.1-6 RPM Package On CentOS 5.2

Want to support HowtoForge? Become a subscriber!
 
Submitted by muffycompo (Contact Author) (Forums) on Thu, 2008-12-11 11:22. :: CentOS

How To Create A FreeRADIUS 2.1.1-6 RPM Package On CentOS 5.2

This is just a short tutorial showing how to create an RPM version of FreeRADIUS 2.1.1-6 on CentOS 5.2. This version of FreeRADIUS is not yet included in the CentOS 5 repositories.

 

Getting FreeRADIUS 2.1.1-6 SRPM from Koji

Download the SRPM version from here:

http://koji.fedoraproject.org/packages/freeradius/2.1.1/6.fc10/src/freeradius-2.1.1-6.fc10.src.rpm

Now install the srpm software:

rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm

cd /usr/src/redhat/RPMS/SPECS

rpmbuild -bb freeradius.spec

Make Sure You Have the following dependencies installed:

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

Go to the i386 directory:

cd /usr/src/redhat/RPMS/i386

 

Installing the binary packages

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

Enjoy your FreeRADIUS 2.1.1-6 installation.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Mon, 2009-05-04 06:21.

We followed the instructions on a CentOS 5.3 box but after running

"rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm"

we had to

"cd /usr/src/redhat/SPECS"

to get to the freeradius.spec file.

When we ran

"rpm build -bb freeradius.spec"

it created 12 rpms instead of the 4 that are listed in the howto. It does not explain if we are supposed to do anything with the other rpms.

The information is not useable.

Submitted by Aaron (not registered) on Tue, 2010-10-26 18:18.

This works great.   I actually just used this to install freeradius 2.1.10.

Needed to install a few dependencies with yum before the rpmbuild command; but the rpmbuild command shows you what is missing :)

 Got it running on CentOS 5.5 x64_86, no problems so far.

 If I wold have followed the freeradius RedHat build guide I would still be here working on it (2 hours on it)...

 Thanks.

Submitted by Anonymous (not registered) on Fri, 2009-06-26 22:52.

Dear, Mr Incomplete.

You, sir, are in for a big suprize if you are new to the linux world, and you expect things to go EXACTLY as planned. So there was a typo in the posting, BFD, that does ABSOLUTELY NOTHING to the value of the post. If you would have simply ran "updatedb" then "locate freeradius.spec" you would have found it.  And it created 12 RPMS instead of 4! Oh no! You ungreatful jackass, all that means is you can choose to install the other packages _IF_ you need those options. The aricle and information is extremely useful, even if they didnt hold your freaking hand the whole time. Use your own head a little, and you would have been fine.

Submitted by Anonymous (not registered) on Fri, 2009-11-20 19:56.

Thank you for providing a great example of the bone-headedness of some linux users.

 When the instructions aren't right, that would be a problem.  Linux being a world of powerful command-line, a single character typo can be a big deal, right?  Much less part of the commands being missing.

 Rick

"No man is completely worthless, he can always serve as a bad example".

Submitted by Anonymous (not registered) on Sun, 2009-07-26 11:02.

chill the hell out. Everyone has to start somewhere and sometime. 

 Liked the How-to.