Install Cassandra PHP extension
Install Cassandra PHP extension
checking for __gmp_version in -lgmp... no
configure: error: Unable to load libgmp
checking for uv_version in -luv... no
configure: error: Unable to load libuv
dpkg: dependency problems prevent configuration of cassandra-cpp-driver:
cassandra-cpp-driver depends on libuv; however:
Package libuv is not installed.
http://downloads.datastax.com/cpp-driver/ubuntu/16.04/
1. Log into your Linux server via SSH as ‘root’ user OR login as any user with sudo privileges
2. Install the below dependencies using apt
wget https://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies/libuv/v1.20.0/libuv-dev_1.20.0-1_amd64.deb
wget https://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra/v2.7.0/cassandra-cpp-driver_2.7.0-1_amd64.deb
wget https://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra/v2.7.0/cassandra-cpp-driver-dev_2.7.0-1_amd64.deb
root@server:/usr/local/src# dpkg -i libuv-dev_1.20.0-1_amd64.deb
root@server:/usr/local/src# dpkg -i cassandra-cpp-driver_2.7.0-1_amd64.deb
root@server:/usr/local/src# dpkg -i cassandra-cpp-driver-dev_2.7.0-1_amd64.deb
Run the command ‘php --ini’ OR ‘php -i | grep php.ini’ to find the location of your PHP configuration file.
8. Add the extension cassandra.so in your php configuration file
cassandra