Closed
Description
Ubuntu 14 here, pip==7.1.2, setuptools==18.3.2, virtualenv==13.1.2.
First, I want to build latest stable (seems it's 0.9.2) librdkafka
into /opt/librdkafka
.
curl https://codeload.github.com/edenhill/librdkafka/tar.gz/v0.9.2 | tar xzf - -C /tmp/
cd /tmp/librdkafka-0.9.2/
./configure --prefix=/opt/librdkafka
make
sudo make install
cd -
rm -r /tmp/librdkafka-0.9.2
I have a virtualenv and want to install latest stable confluent-kafka
.
source venv/bin/activate
$ C_INCLUDE_PATH=/opt/librdkafka/include LIBRARY_PATH=/opt/librdkafka/lib pip install confluent-kafka
Collecting confluent-kafka
Using cached confluent-kafka-0.9.2.tar.gz
Building wheels for collected packages: confluent-kafka
Running setup.py bdist_wheel for confluent-kafka
Stored in directory: /home/f/.cache/pip/wheels/blabla
Successfully built confluent-kafka
Installing collected packages: confluent-kafka
Successfully installed confluent-kafka-0.9.2
But then a test script fails:
$ python ktest.py
Traceback (most recent call last):
File "ktest.py", line 1, in <module>
from confluent_kafka import Producer
File "/home/bla/proj/bla/venv/local/lib/python2.7/site-packages/confluent_kafka/__init__.py", line 2, in <module>
from .cimpl import *
ImportError: librdkafka.so.1: cannot open shared object file: No such file or directory
Am I doing something wrong?