Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error on Centos #15

Open
sammyblackbaron opened this issue Aug 21, 2015 · 3 comments
Open

Installation error on Centos #15

sammyblackbaron opened this issue Aug 21, 2015 · 3 comments

Comments

@sammyblackbaron
Copy link

Hi,

I have installed zbar using "yum install zbar" and this has worked fine.

When I try to install your PHP extension, I receive the following:

checking whether to enable the zbarcode extension... yes, shared
checking path to ImageMagick library... yes, shared
checking whether to enable zbarcode Imagick support... no
checking whether to enable zbarcode GD Imagick support... no
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6002004... found version 6.7.2 Q16
checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
checking zbar installation... configure: error: Unable to find zbar installation

Even though zbar is installed. I'm not sure where to go from here, so can you please offer any help?

Many thanks

@mkoppanen
Copy link
Owner

Check with pkg-config zbar --modversion whether it's found.

@sammyblackbaron
Copy link
Author

Hi,

Many thanks for getting back to me. I ran that and it couldn't find zbar, so I ran the command:

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
The location of is zbar.pc: /usr/local/lib/pkgconfig/zbar.pc

Which then allowed me to run the required command:

root@server [/usr/local/src/php-zbarcode-master]# pkg-config zbar --modversion
0.10

However, I still get the same error on compiling.
"checking zbar installation... configure: error: Unable to find zbar installation"

The PKG_CONFIG_PATH is set correctly to point to zbar.pc

root@server [/]# $PKG_CONFIG_PATH
-bash: /usr/local/lib/pkgconfig: is a directory

Any additional help you can offer would be great - thank you.

@Wunsz
Copy link

Wunsz commented Sep 14, 2015

Not sure if it will help, but please look at my pull request #17.

For me there was a problem on Debian 8, the MagickWand-config was not found in any directories specified by imagemagick.m4. It worked for me with the fix, but now it seems to fail on the Ubuntu based Travis CI for this project. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants