title: ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
body: <p>I was trying to install <a href="http://zbar.sourceforge.net/" rel="nofollow noreferrer">zbar</a> on my Macbook.</p>
  
  <p>When I execute command <code>pip install zbar</code> (after <code>brew install zbar</code>） Exception is thrown as below:</p>
  
  <pre><code>Collecting zbar
    Using cached zbar-0.10.tar.bz2
  Installing collected packages: zbar
    Running setup.py install for zbar
      building 'zbar' extension
      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c zbarmodule.c -o build/temp.macosx-10.11-intel-2.7/zbarmodule.o
      In file included from zbarmodule.c:24:
      ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
      #include &lt;zbar.h&gt;
               ^
      1 error generated.
      error: command 'cc' failed with exit status 1
      Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/var/folders/hx/jbnxkn396zs34xn3fv10tjf40000gn/T/pip-build-PlQauK/zbar/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/hx/jbnxkn396zs34xn3fv10tjf40000gn/T/pip-0yRA4D-record/install-record.txt --single-version-externally-managed --compile:
      running install
  
      running build
  
      running build_ext
  
      building 'zbar' extension
  
      creating build
  
      creating build/temp.macosx-10.11-intel-2.7
  
      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c zbarmodule.c -o build/temp.macosx-10.11-intel-2.7/zbarmodule.o
  
      In file included from zbarmodule.c:24:
  
      ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
  
      #include &lt;zbar.h&gt;
  
               ^
  
      1 error generated.
  
      error: command 'cc' failed with exit status 1
  
      ----------------------------------------
      Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/var/folders/hx/jbnxkn396zs34xn3fv10tjf40000gn/T/pip-build-PlQauK/zbar/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/hx/jbnxkn396zs34xn3fv10tjf40000gn/T/pip-0yRA4D-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/hx/jbnxkn396zs34xn3fv10tjf40000gn/T/pip-build-PlQauK/zbar
  </code></pre>
  
  <p>There is a similar <a href="https://stackoverflow.com/q/25276907/2428562">question</a>, However the answers are not helpful in my case. </p>
  
  <h3>I also tried another way to install according to this <a href="https://pypi.python.org/pypi/zbar" rel="nofollow noreferrer">link</a></h3>
  
  <p>However the same error occurred when I type <code>python setup.py install</code></p>
  
  <pre><code>running install
  running build
  running build_ext
  building 'zbar' extension
  creating build
  creating build/temp.macosx-10.11-intel-2.7
  cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c zbarmodule.c -o build/temp.macosx-10.11-intel-2.7/zbarmodule.o
  In file included from zbarmodule.c:24:
  ./zbarmodule.h:26:10: fatal error: 'zbar.h' file not found
  #include &lt;zbar.h&gt;
           ^
  1 error generated.
  error: command 'cc' failed with exit status 1
  </code></pre>