Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I'd prefer not to use the package manager for installation as I'm attempting to install a custom module and the directory tree from the repo install doesn't match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn't. Chkconfig doesn't seem to working on a src install either and I want radiusd to run as a service. Thanks in advance, Timothy McNabb Network Administrator Velociter Wireless, Inc (209)838-1221
I just compiled / installed 2.1.10 on RHEL yesterday, zero problems. I don't know about Chkconfig - I'm just testing it so launched it manually. G ________________________________ From: freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org [mailto:freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:03 PM To: freeradius-users@lists.freeradius.org Subject: Compiling from source Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I'd prefer not to use the package manager for installation as I'm attempting to install a custom module and the directory tree from the repo install doesn't match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn't. Chkconfig doesn't seem to working on a src install either and I want radiusd to run as a service. Thanks in advance, Timothy McNabb Network Administrator Velociter Wireless, Inc (209)838-1221 <font size="1"> <div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'> </div> "This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system." </font>
Thanks for the input Gary. I gave it a dry run a couple days ago, installing radiusd and rc.radiusd to /etc/rc.d/init.d will cause it to run at startup but I want to have more simplistic control over the service if possible. Obviously installing to sbin will give you control regardless of directory location, however the service command doesn't give you access, at least not that I've found (ex. Root#]service radiusd OPTION]). If someone has found a workaround for this, that would be fantastic. I know about enough Linux to be dangerous, though definitely having fun working on this and learning new things. ;-) -Tim From: freeradius-users-bounces+tim=velociter.net@lists.freeradius.org [mailto:freeradius-users-bounces+tim=velociter.net@lists.freeradius.org] On Behalf Of Gary Gatten Sent: Friday, May 13, 2011 11:15 AM To: 'FreeRadius users mailing list' Subject: RE: Compiling from source I just compiled / installed 2.1.10 on RHEL yesterday, zero problems. I don't know about Chkconfig - I'm just testing it so launched it manually. G ________________________________ From: freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org [mailto:freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:03 PM To: freeradius-users@lists.freeradius.org Subject: Compiling from source Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I'd prefer not to use the package manager for installation as I'm attempting to install a custom module and the directory tree from the repo install doesn't match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn't. Chkconfig doesn't seem to working on a src install either and I want radiusd to run as a service. Thanks in advance, Timothy McNabb Network Administrator Velociter Wireless, Inc (209)838-1221 "This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system."
Actually FR is one of the easiest compiles on linux I have ever seen! The trick is to make sure you have all the necessary DEV packages installed. I haven't compiled from source in a bit but I know in other programs you have to have the correct DEV package architecture, IE: even though you may be running a 64 bit OS the build may REQUIRE the 32 bit dev package. I do not remember if FreeRADIUS does this or not but is has been a pain for me in the past when building other software, so if your build is failing on a req that you KNOW you have installed check to see if the dev package is installed and if it is the correct architecture. Jake Sallee Godfather of Bandwidth Network Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221 From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:43 PM To: FreeRadius users mailing list Subject: RE: Compiling from source Thanks for the input Gary. I gave it a dry run a couple days ago, installing radiusd and rc.radiusd to /etc/rc.d/init.d will cause it to run at startup but I want to have more simplistic control over the service if possible. Obviously installing to sbin will give you control regardless of directory location, however the service command doesn't give you access, at least not that I've found (ex. Root#]service radiusd OPTION]). If someone has found a workaround for this, that would be fantastic. I know about enough Linux to be dangerous, though definitely having fun working on this and learning new things. ;-) -Tim From: freeradius-users-bounces+tim=velociter.net@lists.freeradius.org [mailto:freeradius-users-bounces+tim=velociter.net@lists.freeradius.org] On Behalf Of Gary Gatten Sent: Friday, May 13, 2011 11:15 AM To: 'FreeRadius users mailing list' Subject: RE: Compiling from source I just compiled / installed 2.1.10 on RHEL yesterday, zero problems. I don't know about Chkconfig - I'm just testing it so launched it manually. G ________________________________ From: freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org [mailto:freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:03 PM To: freeradius-users@lists.freeradius.org Subject: Compiling from source Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I'd prefer not to use the package manager for installation as I'm attempting to install a custom module and the directory tree from the repo install doesn't match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn't. Chkconfig doesn't seem to working on a src install either and I want radiusd to run as a service. Thanks in advance, Timothy McNabb Network Administrator Velociter Wireless, Inc (209)838-1221 "This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system."
I can actually build just fine, and get FR to run and process the requests. I guess what I'm trying to do is maintain the installation structure as the HOWTO's generally show on the interwebs, while also enabling the features that I enjoy using through CentOS such as the service command :) Running CentOS 5.5 if that helps. -Tim From: freeradius-users-bounces+tim=velociter.net@lists.freeradius.org [mailto:freeradius-users-bounces+tim=velociter.net@lists.freeradius.org] On Behalf Of Sallee, Stephen (Jake) Sent: Friday, May 13, 2011 12:52 PM To: FreeRadius users mailing list Subject: RE: Compiling from source Actually FR is one of the easiest compiles on linux I have ever seen! The trick is to make sure you have all the necessary DEV packages installed. I haven't compiled from source in a bit but I know in other programs you have to have the correct DEV package architecture, IE: even though you may be running a 64 bit OS the build may REQUIRE the 32 bit dev package. I do not remember if FreeRADIUS does this or not but is has been a pain for me in the past when building other software, so if your build is failing on a req that you KNOW you have installed check to see if the dev package is installed and if it is the correct architecture. Jake Sallee Godfather of Bandwidth Network Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221 From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:43 PM To: FreeRadius users mailing list Subject: RE: Compiling from source Thanks for the input Gary. I gave it a dry run a couple days ago, installing radiusd and rc.radiusd to /etc/rc.d/init.d will cause it to run at startup but I want to have more simplistic control over the service if possible. Obviously installing to sbin will give you control regardless of directory location, however the service command doesn't give you access, at least not that I've found (ex. Root#]service radiusd OPTION]). If someone has found a workaround for this, that would be fantastic. I know about enough Linux to be dangerous, though definitely having fun working on this and learning new things. ;-) -Tim From: freeradius-users-bounces+tim=velociter.net@lists.freeradius.org [mailto:freeradius-users-bounces+tim=velociter.net@lists.freeradius.org] On Behalf Of Gary Gatten Sent: Friday, May 13, 2011 11:15 AM To: 'FreeRadius users mailing list' Subject: RE: Compiling from source I just compiled / installed 2.1.10 on RHEL yesterday, zero problems. I don't know about Chkconfig - I'm just testing it so launched it manually. G ________________________________ From: freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org [mailto:freeradius-users-bounces+ggatten=waddell.com@lists.freeradius.org] On Behalf Of Tim McNabb Sent: Friday, May 13, 2011 1:03 PM To: freeradius-users@lists.freeradius.org Subject: Compiling from source Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I'd prefer not to use the package manager for installation as I'm attempting to install a custom module and the directory tree from the repo install doesn't match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn't. Chkconfig doesn't seem to working on a src install either and I want radiusd to run as a service. Thanks in advance, Timothy McNabb Network Administrator Velociter Wireless, Inc (209)838-1221 "This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system."
On 05/13/2011 05:28 PM, Tim McNabb wrote:
I can actually build just fine, and get FR to run and process the requests. I guess what I’m trying to do is maintain the installation structure as the HOWTO’s generally show on the interwebs, while also enabling the features that I enjoy using through CentOS such as the service command JRunning CentOS 5.5 if that helps.
If your fundamental problem is some third party software is looking for something in a different location have you considered just using a symlink? If not the easiest way to maintain the existing structure, but tweak it slightly is to tweak the SRPM and rebuild the SRPM. Plus you'll get the advantage of having it be a package install which means you're not fooling the system and you can trivially uninstall/reinstall/update and be guaranteed the right things happen. It also will mean your result should be compatible with RHEL/CentOS (unless you break something :-) Basic instructions for how to obtain and build the SRPM can be found here: http://wiki.freeradius.org/Red_Hat_FAQ In your case it sound like all you need to tweak will be in the spec file and one of the files included in the SRPM (e.g. the initscript). If you have to modify any of the files in freeradius tarball you'll have to create a patch and apply it in the spec file (a good idea anyway). -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
On 05/13/2011 02:03 PM, Tim McNabb wrote:
Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I’d prefer not to use the package manager for installation as I’m attempting to install a custom module and the directory tree from the repo install doesn’t match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn’t. Chkconfig doesn’t seem to working on a src install either and I want radiusd to run as a service.
It obviously works or there wouldn't be a RPM package to install :-) Look at the freeradius.spec file in the freeradius.src.rpm (i.e. SRPM), it will show exactly how the build and install is performed as well as containing the initscript. -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
hi,
Has anyone been successful in installing FreeRADIUS 2.1.10 from src on CentOS or RHEL? I’d prefer not to use the package manager for installation as I’m attempting to install a custom module and the directory tree from the repo install doesn’t match the source module setup. I know this is normal for using Yum, just wondering if anyone has been successful installing from src on CentOS and what worked and what didn’t. Chkconfig doesn’t seem to working on a src install either and I want radiusd to run as a service.
compile from source - not in the ./configure stage any WARNING lines (eg pass the output through "| grep WARNING") to ensure that you have any required libraries for some of the functions. as for the startup script, the source code contains a few contributed scripts - eg in the redhat directory. you can copy the required radiusd script to the /etc/init.d/ directory (you may need to tweak/edit it for the PATH etc where your version from source has ended up).. theres the logrotate script too - for /etc/logrotate.d alan
participants (5)
-
Alan Buxey -
Gary Gatten -
John Dennis -
Sallee, Stephen (Jake) -
Tim McNabb