Skip to content

Build php zbarcode on Mac

金马 edited this page Aug 28, 2013 · 1 revision

##Dependencies

  1. Zbar

  2. ImageMagick

The most effective way to install them on Mac is using brew which is stunning.

$ brew install zbar
$ brew install imagemagick

##Build

$ phpize
$ ./configure
$ make test
$ make install

Please check that whether your zbarcode.so is loaded using :

$ php -m|grep zbarcode

##Problems may occur

If it can't find the imagemagick header, please use

$ ./configure --without-zbarcode-imagick
Clone this wiki locally