-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
I can't install rdkafka via pecl under the php7.1 on Mac M1 #365
Comments
I will add |
Thank you shivammathur!! |
|
@ninjachen The issue is that your autoconf auxiliary file config.sub is old and does not recognize macos arm. Make sure you have the latest autoconf and Xcode cli tools, and then try again.
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
brew update
brew reinstall autoconf
brew install librdkafka
pecl download rdkafka-5.0.0
tar xf rdkafka-5.0.0.tgz
cd rdkafka-5.0.0
phpize
./configure --with-rdkafka="$(brew --prefix librdkafka)" --with-php-config="$(which php-config)"
make
make install |
@ninjachen Added rdkafka in |
You can use: eg: |
Describe the bug
I can't install rdkafka via pecl under the php7.1 on Mac M1. Error is: checking build system type... Invalid configuration `arm64-apple-darwin20.5.0': machine 'arm64-apple' not recognized
PHP versions
7.1
To Reproduce
shivammathur/homebrew-php
and install php@7.1 arm64Expected behavior
The rdkafka will be installed by pecl success.
Screenshots/Logs
Actually, I can't install any libs by pecl.
Additional context
I try to use
brew install memcached@7.1 --build-from-source
another extension from shivammathur/homebrew-extensions, and it works.And could you fix this pecl issue ?
Or could you please add rdkafka@7.1 into your extensions and give some more details to help my to build and install php c extension manually?
The text was updated successfully, but these errors were encountered: