#zbar wget http://ncu.dl.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2 yum install gtk2 gtk2-devel pygtk2 pygtk2-devel qt qt-devel ImageMagick-devel ImageMagick ./configure --enable-pthread=yes --with-jpeg=yes --with-imagemagick=yes make make install #php 扩展 wget https://github.com/mkoppanen/php-zbarcode/archive/master.zip unzip master.zip cd php-zbarcode-master/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-zbarcode=/usr/local/ make make install