Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra PHP libcassandra.so.2: cannot open shared object file

So I have spent the best part of the day trying (and failing) to get the php driver for apache cassandra to install on my server (CentOS 7).

After a lot of mucking about and a few grey hairs i have finally got the driver to install but unfortunately it doesnt actually load.

In my apache Error log i get PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/cassandra.so' - libcassandra.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

I have checked and the libcassandra.so.2 file does indeed exist in /usr/local/lib64/libcassandra.

Has anyone come across a similar ptoblem? Any help would be appreciated.

Im Running CentOS 7 and PHP 5.4.16 and Apache 2.4.6

Thanks Matt.

like image 864
Matt Indeedhat Holmes Avatar asked Jun 07 '26 20:06

Matt Indeedhat Holmes


1 Answers

the problem i was having was that libcassandra was installed into /usr/local/lib64 not /usr/lib64

a simple ln -s /usr/local/lib64/libcassandra.so.2 /usr/lib64/libcassandra.so.2 command fixed the problem

like image 113
Matt Indeedhat Holmes Avatar answered Jun 09 '26 14:06

Matt Indeedhat Holmes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!