-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
configure: error: Cannot find php_hash.h #1822
Comments
Hi, were you able to solve this problem? It's hard to help diagnose the problem because I no longer have a Mac and I know building software on them can be problematic (SIP protections, etc). The first thing I'd do is make sure you have |
I am having the same problem |
My guess is the error is exactly what it says. Your system doesn't have |
me too |
We aren't going to be able to help here without more information. Like as a starter, confirmation from someone that they do indeed have the file |
Maybe you don't have an /usr/include folder. MACOS 15.15 remove it |
I'm having this problem and I do have php_hash.h, see attached. I tried installing earlier versions of phpredis and had a similar issue with php_json.h which appears in another ticket. Maybe this is a similar bug and requires a similar solution as the other ticket. |
anyone has resolve is ? |
Same issue when trying to install phpredis on a MacBook Air with a M1 processor. |
Just install it manually. In my case (Apple M1), the correct phpize version was not found by pecl. I've successfully built phpredis like that (replace your php-config path with yours)
|
WARNING: PHP is not recommended |
Same problem here, has anyone found a solution? php_hash.h it's in the include path |
any idea for this problem plz. |
Note: MacOS comes with its own php version that gets installed in /usr/bin/php while brew will put it in /usr/local/bin/php |
I ran into the same issue while installing the extension on Pop!_OS 21.04 ./configure --with-php-config=/opt/lampp/bin/php I fixed it by passing ./configure --with-php-config=/opt/lampp/bin/php-config I was installing the extension to my Xampp installation so the location was |
Going to close this old issue. If people are still running into this issue I'm happy to help. I've now actually got an M1 mac running PhpRedis. |
issue:
checking for hash includes... configure: error: Cannot find php_hash.h
The text was updated successfully, but these errors were encountered: