Note to install "which" command in the installation guide in case of building 
on RHEL/CentOS.

I tried to build on Docker container with official CentOS7 image and 
when I tried to build thirdparty libraries, I caught an error message as 
follows.

+ /root/work/kudu/thirdparty/preflight.py
Running pre-flight checks
-------------------------
Using C compiler: c++
Using C++ compiler: c++

  (Set $CC and $CXX to change compiler)
-------------------------
Checking for autoconf
Traceback (most recent call last):
  File "/root/work/kudu/thirdparty/preflight.py", line 149, in <module>
    sys.exit(main())
  File "/root/work/kudu/thirdparty/preflight.py", line 141, in main
    check_tools()
  File "/root/work/kudu/thirdparty/preflight.py", line 97, in check_tools
    if subprocess.call(["which", tool], stdout=DEV_NULL, stderr=DEV_NULL) != 0:
  File "/usr/lib64/python2.7/subprocess.py", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

This message means that "which" command is absent.
Of course, I understand it's very rare case that "which" is absent but I think 
it's better to note just in case to install "which" command in the installation 
guide.

Change-Id: If02eae6f22a51965120a037cc9a68ddefa418b6c
Reviewed-on: http://gerrit.cloudera.org:8080/5216
Tested-by: Todd Lipcon <[email protected]>
Reviewed-by: Todd Lipcon <[email protected]>


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

Branch: refs/heads/master
Commit: ac3cf12930d76f7ae5d3cdbc71baa3758705bd02
Parents: 5abff6d
Author: Kousuke Saruta <[email protected]>
Authored: Fri Nov 25 01:35:33 2016 +0900
Committer: Todd Lipcon <[email protected]>
Committed: Mon Nov 28 23:03:18 2016 +0000

----------------------------------------------------------------------
 docs/installation.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/ac3cf129/docs/installation.adoc
----------------------------------------------------------------------
diff --git a/docs/installation.adoc b/docs/installation.adoc
index 4e45181..433983b 100644
--- a/docs/installation.adoc
+++ b/docs/installation.adoc
@@ -256,7 +256,7 @@ on a version older than 7.0, the Red Hat Developer Toolset 
must be installed
 ----
 $ sudo yum install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \
   cyrus-sasl-plain gcc gcc-c++ gdb git krb5-server krb5-workstation libtool \
-  make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common
+  make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common 
which
 ----
 
 . If building on RHEL or CentOS older than 7.0, install the Red Hat Developer
@@ -336,7 +336,7 @@ automated deployment scenario. It skips the steps marked 
*Optional* above.
 
 sudo yum -y install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \
   cyrus-sasl-plain gcc gcc-c++ gdb git krb5-server krb5-workstation libtool \
-  make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common
+  make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common 
which
 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}

Reply via email to