xstevens / pg_kafka

INACTIVE: A PostgreSQL extension to produce messages to Apache Kafka.
MIT License
112 stars 15 forks source link

librdkafka.so.1: cannot open shared object file: No such file or directory #3

Closed igorbarinov closed 9 years ago

igorbarinov commented 9 years ago

Hi, I got this error

sudo service postgresql start
 * Starting PostgreSQL 9.4 database server                                                                                                                                                                   * The PostgreSQL server failed to start. Please check the log output:
2015-06-20 07:29:30 UTC [1357-1] FATAL:  could not load library "/usr/lib/postgresql/9.4/lib/pg_kafka.so": librdkafka.so.1: cannot open shared object file: No such file or directory
vagrant@v:/usr/local/lib$ ls -la
total 3864
drwxr-xr-x  5 root root     4096 Jun 20 06:58 .
drwxr-xr-x 10 root root     4096 Jun 11 20:38 ..
-rwxr-xr-x  1 root root  1924908 Jun 20 06:58 librdkafka.a
-rwxr-xr-x  1 root root   768712 Jun 20 06:58 librdkafka++.a
lrwxrwxrwx  1 root root       15 Jun 20 06:58 librdkafka.so -> librdkafka.so.1
lrwxrwxrwx  1 root root       17 Jun 20 06:58 librdkafka++.so -> librdkafka++.so.1
-rwxr-xr-x  1 root root   922235 Jun 20 06:58 librdkafka.so.1
-rwxr-xr-x  1 root root   315187 Jun 20 06:58 librdkafka++.so.1
drwxrwsr-x  4 root staff    4096 Jun 11 20:40 python2.7
drwxrwsr-x  3 root staff    4096 Jun 11 20:39 python3.4
drwxr-xr-x  3 root root     4096 Jun 16 21:59 site_ruby

Clean machine just installed Postgres 9.4 and pg_kafka and librdkafka

Any ideas? Thanks!

igorbarinov commented 9 years ago

solved with sudo /sbin/ldconfig -v