In file included from ../src/bcrypt_node.cc:1:
../../nan/nan.h:47:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory
查阅资料得知
由于node4.0版本后升级了v8引擎,编译时需要gcc4.8以上版本,Centos6自带的gcc为gcc-4.4.7, 不支持编译所需的C++11标准,所以只好升级gcc
devtoolset-6.x86_64 : Package that installs devtoolset-6
devtoolset-7.x86_64 : Package that installs devtoolset-7
devtoolset-6-gcc.x86_64 : GCC version 6
devtoolset-6-gcc-c++.x86_64 : C++ support for GCC version 6
devtoolset-7-gcc.x86_64 : GCC version 7
devtoolset-7-gcc-c++.x86_64 : C++ support for GCC version 7