系统centos6
使用yarn add sharp会出现如上图报错
gcc已经是4.8.2版本
[root@iZj6c9dop65dq9fi3foeweZ xd-news]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.8.2 (GCC)
http://www.cnblogs.com/jhj117/p/6117204.html
根据这个链接验证了c++11正常
不知道为何仍然会出现error GCC version 4.6+ is required for C++11 features - see sharp.dimens.io/page/install#prerequisites
百度后得知gcc编译需要加上 -std=c++11 是不是和这个有关系?
ps:npm安装sharp也会失败