These are chat archives for arnaud-lb/php-rdkafka

Jul 2016
Alexander Petrovsky
Jul 22 2016 09:15
Hello, I have a problem with php-rdkafka - "PHP Fatal error: Class 'RdKafka\KafkaConsumer' not found in /home/a.petrovsky/consumer-kafka/examples/python/Consumer.php on line 25"
Could some one help me please?
$ uname -a
Linux statsdev 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ php -v
PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
The librdkafka I've built from source, on branch - debian
$ ldconfig -p | grep librdkafka (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/local/lib/ (libc6,x86-64) => /usr/local/lib/
$ php -i | grep extension_dir
extension_dir => /usr/lib/php5/20121212 => /usr/lib/php5/20121212
$ ls /usr/lib/php5/20121212 | grep kafka
And of course, I've build php-rdkafka from source too, from last commit in master branch