os version
CentOS release 6.6 (Final)
gcc-c++のinstall
sudo yum install centos-release-scl && \
sudo yum install devtoolset-3-gcc-c++ && \
scl enable devtoolset-3 bash
check
which g++
/opt/rh/devtoolset-3/root/usr/bin/g++
LightGBMのinstall
git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build
cmake -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-3/root/usr/bin/g++ ..
make -j