Building the Master branch gives this error:
FAIL RdKafka\Conf [tests/conf_callbacks.phpt]
And running the code in my laravel application give me this:
In PubSubConnectionFactory.php line 98:
Call to undefined method RdKafka\Conf::setDefaultTopicConf()
if I comment out that line I get this:
In PubSubServiceProvider.php line 76:
Class 'RdKafka\KafkaConsumer' not found
Solved this issue myself using the following steps:
Solved this issue myself using the following steps:
- Uninstall librakafka (sudo apt-get remove --auto-remove librdkafka-dev)
- Download the latest release (https://github.com/edenhill/librdkafka/releases)
- Unzip the librakafka, then ./configure; make; sudo make install
- Using this command:
php -i | grep "extension_dir"
Find the location of your php extensions and remove the rdkafka.so file.- Now reinstall it using the manual method here: (https://arnaud-lb.github.io/php-rdkafka/phpdoc/rdkafka.installation.html)
- This should solve the issue as you will be recompiling rdkafka with the latest release of librakafka (make sure you do not use master for librakafka).
thinks, i fixed by this method
Solved this issue myself using the following steps:
- Uninstall librakafka (sudo apt-get remove --auto-remove librdkafka-dev)
- Download the latest release (https://github.com/edenhill/librdkafka/releases)
- Unzip the librakafka, then ./configure; make; sudo make install
- Using this command:
php -i | grep "extension_dir"
Find the location of your php extensions and remove the rdkafka.so file.- Now reinstall it using the manual method here: (https://arnaud-lb.github.io/php-rdkafka/phpdoc/rdkafka.installation.html)
- This should solve the issue as you will be recompiling rdkafka with the latest release of librakafka (make sure you do not use master for librakafka).
Thanks, it fixed for me too!
Most helpful comment
Solved this issue myself using the following steps:
php -i | grep "extension_dir"
Find the location of your php extensions and remove the rdkafka.so file.