Revision: 77150
http://sourceforge.net/p/brlcad/code/77150
Author: starseeker
Date: 2020-09-14 11:31:09 +0000 (Mon, 14 Sep 2020)
Log Message:
-----------
Add instructions for older CentOS vanilla image - should be representative of
what to do generally if one is on a Redhat based image that has a too-old
default toolset.
Modified Paths:
--------------
brlcad/trunk/doc/README.Linux
Modified: brlcad/trunk/doc/README.Linux
===================================================================
--- brlcad/trunk/doc/README.Linux 2020-09-14 10:25:28 UTC (rev 77149)
+++ brlcad/trunk/doc/README.Linux 2020-09-14 11:31:09 UTC (rev 77150)
@@ -89,9 +89,13 @@
generation.
-Redhat/Fedora
+Redhat/CentOS/Fedora
-------------
+If you don't already have the necessary development tools:
+
+ yum install gcc gcc-c++ cmake
+
Development packages for building on Redhat/Fedora platforms:
yum install libX11-devel
@@ -101,6 +105,38 @@
yum install fontconfig-devel # optional
yum install mesa-libGL-devel # optional
+
+When setting up older versions for building BRL-CAD, it is sometimes
+necessary to install some non-default compilation tools in addition to the
+usual dependencies. (The default toolchain is sometimes too old to
+properly build BRL-CAD, if the compilers don't support sufficiently modern
+standards.) The following example is for CentOS 7:
+
+yum install centos-release-scl
+yum install devtoolset-7
+
+Then to run within that environment:
+
+scl enable devtoolset-7 bash
+
+
+The CMake version is often too old as well. One way forward is to download the
+source code and bootstrap it (do this within the devtoolset enabled bash):
+
+sudo yum install openssl-devel
+
+curl -L -o cmake-3.18.2.tar.gz
https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2.tar.gz
+tar -xvf cmake-3.18.2.tar.gz
+cd cmake-3.18.2
+./bootstrap --prefix=/opt/cmake
+make -j3 && make install
+export PATH=/opt/cmake/bin
+
+From there, with the devtoolset enabled and the PATH set to include the new
+CMake, it should be possible to proceed normally with the build.
+
+-------
+
To determine what particular version of Redhat or Fedora you are
using, check these files:
@@ -107,6 +143,8 @@
cat /etc/redhat-release
cat /etc/fedora-release
+-------
+
Note there is a supported rpm package generation script in file
'sh/make_rpm.sh' which can only function on a Fedora or openSUSE
system. It can be used like so:
@@ -119,6 +157,8 @@
It is also possible to create an RPM package using CPack with the
make package build target, on systems with the proper RPM tools.
+
+
PPC64 Linux
-----------
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits