kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danburk...@apache.org
Subject [2/3] incubator-kudu git commit: Update installation docs for C++11 requirement
Date Fri, 22 Jan 2016 17:14:32 GMT
Update installation docs for C++11 requirement

Change-Id: Iced437f3cfcc1878fc119865b2f1c379e215c63f
Reviewed-on: http://gerrit.cloudera.org:8080/1862
Reviewed-by: Adar Dembo <adar@cloudera.com>
Tested-by: Internal Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/353b5ec4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/353b5ec4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/353b5ec4

Branch: refs/heads/master
Commit: 353b5ec48e0ac44b7c5e1a3f6d4e281eeb22a02e
Parents: 02df166
Author: Dan Burkert <dan@cloudera.com>
Authored: Thu Jan 21 13:21:38 2016 -0800
Committer: Dan Burkert <dan@cloudera.com>
Committed: Fri Jan 22 17:12:46 2016 +0000

----------------------------------------------------------------------
 docs/installation.adoc       | 33 +++++++++++++++++++++++++++------
 docs/support/scripts/Gemfile |  2 +-
 docs/troubleshooting.adoc    |  4 ++--
 3 files changed, 30 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/353b5ec4/docs/installation.adoc
----------------------------------------------------------------------
diff --git a/docs/installation.adoc b/docs/installation.adoc
index a6a2388..3bf43c4 100644
--- a/docs/installation.adoc
+++ b/docs/installation.adoc
@@ -197,12 +197,16 @@ need, you can build Kudu from source. You can build from source on any
supported
 .Known Build Issues
 ====
 * It is not possible to build Kudu on Microsoft Windows.
-* Do not build Kudu using `gcc` 4.6. It is known to cause runtime and test failures.
+* A C++11 capable compiler (GCC 4.8+) is required.
 ====
 
 [[rhel_from_source]]
 === RHEL or CentOS
-. Install the prerequisite libraries, if they are not installed:
+RHEL or CentOS 6.6 or later is required to build Kudu from source. The Red Hat
+Developer Toolset is required in order to have access to a C++11 capable
+compiler.
+
+. Install the prerequisite libraries, if they are not installed.
 +
 ----
 $ sudo yum install gcc gcc-c++ autoconf automake libtool \
@@ -210,6 +214,16 @@ $ sudo yum install gcc gcc-c++ autoconf automake libtool \
   cyrus-sasl-plain patch pkgconfig make rsync vim-common gdb
 ----
 
+. Install the Red Hat Developer Toolset.
++
+----
+$ DTLS_RPM=rhscl-devtoolset-3-epel-6-x86_64.noarch.rpm
+$ DTLS_RPM_URL=https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/epel-6-x86_64/download/${DTLS_RPM}
+$ wget ${DTLS_RPM_URL} -O ${DTLS_RPM}
+$ sudo yum install -y scl-utils ${DTLS_RPM}
+$ sudo yum install -y devtoolset-3-toolchain
+----
+
 . Optional: Install the `asciidoctor` gem if you plan to build documentation.
 +
 ----
@@ -228,7 +242,7 @@ $ cd kudu
 +
 [source,bash]
 ----
-$ thirdparty/build-if-necessary.sh
+$ build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh
 ----
 
 . Build Kudu, using the utilities installed in the previous step. Choose a build
@@ -241,7 +255,8 @@ the `make install` step. The default value is `/usr/local/`.
 ----
 mkdir -p build
 cd build
-../thirdparty/installed/bin/cmake \
+../build-support/enable_devtoolset.sh \
+  ../thirdparty/installed/bin/cmake \
   -DCMAKE_BUILD_TYPE=release \
   -DCMAKE_INSTALL_PREFIX=/opt/kudu \
   ..
@@ -276,11 +291,17 @@ automated deployment scenario. It skips the steps marked *Optional*
above.
 sudo yum -y install gcc gcc-c++ autoconf automake libtool \
   boost-static boost-devel openssl-devel cyrus-sasl-devel \
   cyrus-sasl-plain patch pkgconfig make rsync vim-common gdb
+DTLS_RPM=rhscl-devtoolset-3-epel-6-x86_64.noarch.rpm
+DTLS_RPM_URL=https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/epel-6-x86_64/download/${DTLS_RPM}
+wget ${DTLS_RPM_URL} -O ${DTLS_RPM}
+sudo yum install -y scl-utils ${DTLS_RPM}
+sudo yum install -y devtoolset-3-toolchain
 cd kudu
-thirdparty/build-if-necessary.sh
+build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh
 mkdir -p build
 cd build
-../thirdparty/installed/bin/cmake \
+../build-support/enable_devtoolset.sh \
+  ../thirdparty/installed/bin/cmake \
   -DCMAKE_BUILD_TYPE=release \
   ..
 make -j4

http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/353b5ec4/docs/support/scripts/Gemfile
----------------------------------------------------------------------
diff --git a/docs/support/scripts/Gemfile b/docs/support/scripts/Gemfile
index c001789..cc67e62 100644
--- a/docs/support/scripts/Gemfile
+++ b/docs/support/scripts/Gemfile
@@ -1,6 +1,6 @@
 source 'https://rubygems.org'
 
-# We need to use versions that can run on Centos 6, which ships Ruby 1.8.7.
+# We need to use versions that can run on CentOS 6, which ships Ruby 1.8.7.
 gem 'thread_safe'
 gem 'redcarpet', '~> 2.3.0'
 gem 'jekyll', '~> 1.5.1'

http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/353b5ec4/docs/troubleshooting.adoc
----------------------------------------------------------------------
diff --git a/docs/troubleshooting.adoc b/docs/troubleshooting.adoc
index 88d5be4..23d0267 100644
--- a/docs/troubleshooting.adoc
+++ b/docs/troubleshooting.adoc
@@ -95,7 +95,7 @@ To install NTP, use the appropriate command for your operating system:
 |===
 | OS | Command
 | Debian/Ubuntu | `sudo apt-get install ntp`
-| RHEL/Centos | `sudo yum install ntp`
+| RHEL/CentOS | `sudo yum install ntp`
 |===
 
 If NTP is installed but not running, start it using one of these commands:
@@ -103,7 +103,7 @@ If NTP is installed but not running, start it using one of these commands:
 |===
 | OS | Command
 | Debian/Ubuntu | `sudo service ntp restart`
-| RHEL/Centos | `sudo /etc/init.d/ntpd restart`
+| RHEL/CentOS | `sudo /etc/init.d/ntpd restart`
 |===
 
 TIP: NTP requires a network connection and may take a few minutes to synchronize the clock.


Mime
View raw message