Skip to content
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

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/kafka.so' - librdkafka.so.1: cannot open shared object file: No such file or directory in Unknown on line 0 #1

Open
satoshi75nakamoto opened this issue Apr 21, 2014 · 3 comments

Comments

@satoshi75nakamoto
Copy link
Contributor

ldd /usr/lib/php5/20100525/kafka.so
linux-vdso.so.1 => (0x00007fff2bdff000)
librdkafka.so.1 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f90d3d42000)
/lib64/ld-linux-x86-64.so.2 (0x00007f90d430f000)

@satoshi75nakamoto
Copy link
Contributor Author

This is on a, "Ubuntu 12.04.4 LTS (Precise Pangolin)" box.

But if I do the following:
precise64:/lib/x86_64-linux-gnu$ sudo cp /lib64/librdkafka* .
$ ldd /usr/lib/php5/20100525/kafka.so
linux-vdso.so.1 => (0x00007fffc05ff000)
librdkafka.so.1 => /lib/x86_64-linux-gnu/librdkafka.so.1 (0x00007fdd3b0d6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdd3ad16000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdd3aaf8000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdd3a8e1000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdd3a6d9000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdd3b509000)

@yunkaiyueming
Copy link

when i 'make' phpkafka, it occured the followed issue:

[root@OA-test phpkafka]# make test
Build complete.
Don't forget to run 'make test'.

PHP Warning: PHP Startup: Unable to load dynamic library '/root/phpkafka/modules/kafka.so' - librdkafka.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/root/phpkafka/modules/kafka.so' - librdkafka.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/root/phpkafka/modules/kafka.so' - librdkafka.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/root/phpkafka/modules/kafka.so' - librdkafka.so.1: cannot open shared object file: No such file or directory in Unknown on line 0

how can i solve it??? please help me

@EVODelavega
Copy link

As stated in the README: you have to update the dynamic linker by running sudo ldconfig, and you're good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants