From bf4367184164e593cd2856ef38f8dd4f8cc76999 Mon Sep 17 00:00:00 2001 From: Zhirui Wang <576572949@qq.com> Date: Fri, 5 Jan 2018 03:28:26 +0800 Subject: [PATCH] update macOS gcc@5 installation guide (#3003) After installing ``gcc@5``, ``CMAKE_C_COMPILER`` will not be set to gcc-5 in some macOS environment automatically and the installation of xgboost will still fail. Manually setting the compiler will solve the problem. --- python-package/README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-package/README.rst b/python-package/README.rst index cee08c39f..96ad6a555 100644 --- a/python-package/README.rst +++ b/python-package/README.rst @@ -26,6 +26,11 @@ Please install ``gcc@5`` from `Homebrew `_:: brew install gcc@5 +After installing ``gcc@5``, set it as your compiler:: + + export CC = gcc-5 + export CXX = g++-5 + Linux -----