]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Create RedHat and CentOS
authoraBainbridge11 <113794078+aBainbridge11@users.noreply.github.com>
Tue, 16 Jul 2024 19:15:40 +0000 (15:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Aug 2024 21:36:51 +0000 (17:36 -0400)
doc/antora/modules/installation/pages/redhat.adoc [new file with mode: 0644]

diff --git a/doc/antora/modules/installation/pages/redhat.adoc b/doc/antora/modules/installation/pages/redhat.adoc
new file mode 100644 (file)
index 0000000..c0b6bfd
--- /dev/null
@@ -0,0 +1,69 @@
+= Building on RHEL7 or Centos7
+
+There are only a few requirements to building on RHEL, or CentoS
+
+== Hard dependencies
+
+----
+yum -y install libtalloc-devel
+----
+
+== Getting the source
+
+include:/building/Getting-the-Source
+
+== Building from source
+
+----
+# Use ./configure --enable-developer if you're debugging issues, or using unstable code.
+./configure
+make
+sudo make install
+----
+
+== Building Packages
+
+=== With Oracle support
+
+include:RPMs-with-Oracle-support
+
+== Upgrading GCC (>= v4.0.x and master branch only)
+
+> GCC upgrade only required for versions >= v4.0.x you can skip this step for v3.0.x and below.
+
+RHE7 ships with GCC 4.8.5 but we require GCC >= 4.9.0 for FreeRADIUS >= v4.0.x.
+
+Fortunately, the ``devtoolset-3`` series of packages provides a later version of GCC.
+
+Follow the instructions here to enable the [devtoolset-3 repository](https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/).
+
+To install:
+
+----
+yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++
+----
+
+and then to get to a shell with the correct environment:
+
+----
+scl enable devtoolset-3 bash
+----
+
+Or can set ``CC=/opt/rh/devtoolset-3/root/usr/bin/gcc`` in your environment, which works just as well.
+
+If you're building on older versions of RedHat then you'll need to compile GCC from source.
+
+
+=== libkqueue
+
+> libkqueue required for >= v4.0.x, you can skip this step for v3.0.x and below.
+
+Unfortunately neither RHEL nor Centos provide an RPM for libkqueue.  The instructions below will produce a libkqueue RPM, which can then be installed for building from source, or distributed with the FreeRADIUS RPMs when building packages.
+
+Building the libkqueue RPM will require these packages:
+
+----
+yum -y install cmake3
+----
+
+include:libkqueue-rpm