]> granicus.if.org Git - icinga2/commitdiff
INSTALL.md: Add more build hints
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 14 Dec 2016 14:19:46 +0000 (15:19 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 14 Dec 2016 14:19:46 +0000 (15:19 +0100)
fixes #13569

INSTALL.md

index 570605d825d332627eed1198b31b4ce0d5784a2d..143d3b8b6b60a0b3f500467d56f84cbcfe01872e 100644 (file)
@@ -28,6 +28,7 @@ parentheses):
 * cmake >= 2.6
 * GNU make (make)
 * C++ compiler which supports C++11 (gcc-c++ >= 4.7 on RHEL/SUSE, build-essential on Debian, alternatively clang++)
+ * RedHat Developer Tools on RHEL5/6 (details on building below)
 * pkg-config
 * OpenSSL library and header files >= 0.9.8 (openssl-devel on RHEL, libopenssl1-devel on SLES11,
 libopenssl-devel on SLES12, libssl-dev on Debian)
@@ -134,6 +135,33 @@ Copy the icinga2.spec file to `rpmbuild/SPEC` and then run this command:
 
     $ rpmbuild -ba SPEC/icinga2.spec
 
+#### RHEL/CentOS 5 and 6
+
+The RedHat Developer Toolset is required for building Icinga 2 beforehand.
+This contains a modern version of flex and a C++ compiler which supports
+C++11 features.
+
+    cat >/etc/yum.repos.d/devtools-2.repo <<REPO
+    [testing-devtools-2-centos-\$releasever]
+    name=testing 2 devtools for CentOS $releasever
+    baseurl=http://people.centos.org/tru/devtools-2/\$releasever/\$basearch/RPMS
+    gpgcheck=0
+    REPO
+
+    yum install -y devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils
+
+    export LD_LIBRARY_PATH=/opt/rh/devtoolset-2/root/usr/lib:$LD_LIBRARY_PATH
+    export PATH=/opt/rh/devtoolset-2/root/usr/bin:$PATH
+    ln -sf /opt/rh/devtoolset-2/root/usr/bin/ld.bfd /opt/rh/devtoolset-2/root/usr/bin/ld
+    for file in `find /opt/rh/devtoolset-2/root/usr/include/c++ -name c++config.h`; do
+      echo '#define _GLIBCXX__PTHREADS' >> $file
+    done
+
+#### SLES 11
+
+The Icinga repository provides the required boost package version and must be
+added before building.
+
 ### Building Icinga 2 Debs
 
 Setup your build environment on Debian/Ubuntu, copy the 'debian' directory from