centos 安装qrcode  二维码

先安装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 
posted @ 2015-12-29 22:56  崔志朋  阅读(1529)  评论(0编辑  收藏  举报