先安装yum install  mingw64-pkg-config.x86_64
yum install cairo-devel
然后报错,好像是gcc版本有点低,现在的版本是4.4.7
那么接下来的任务就是升级gcc版本
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
hash -r
gcc —version  版本升级到了4.8.2
然后在安装qrcodeOK了
npm install qrcode 

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-05-21
  • 2021-12-09
  • 2021-11-21
  • 2021-11-21
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2021-10-30
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案