安装 php-cassandra 驱动程序

安装 php-cassandra 驱动程序

有依赖/命名问题:

sudo dpkg -i cassandra-cpp-driver_2.4.3-1_amd64.deb

返回

cassandra-cpp-driver depends on libuv; however:
  Package libuv is not installed.

libuv已安装,但现在它被称为libuv0.10 如何向安装程序“解释” libuv = libuv0.10

也无法从源代码构建 php-cassandra 驱动程序。但可以构建 cpp 驱动程序。

pecl安装也失败

答案1

遇到了同样的问题,不得不卸载已经安装的 libuv0.10 和 libuv0.10-dev。

然后按照以下说明进行操作:

sudo apt-get install php-pear php5-dev libgmp-dev libpcre3-dev g++ make cmake libssl-dev openssl<br />
wget downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.8.0/libuv_1.8.0-1_amd64.deb<br />wget downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.8.0/libuv-dev_1.8.0-1_amd64.deb<br />
wget downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra/v2.4.2/cassandra-cpp-driver_2.4.2-1_amd64.deb<br />
wget downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra/v2.4.2/cassandra-cpp-driver-dev_2.4.2-1_amd64.deb

sudo dpkg -i libuv_1.8.0-1_amd64.deb<br />
sudo dpkg -i libuv-dev_1.8.0-1_amd64.deb<br />
sudo dpkg -i cassandra-cpp-driver_2.4.2-1_amd64.deb<br />
sudo dpkg -i cassandra-cpp-driver-dev_2.4.2-1_amd64.deb<br />

pecl install cassandra

ADD extension=cassandra.so in php.ini

来源:https://stackoverflow.com/questions/32997871/pecl-install-cassandra-throws-error-unable-to-load-libcassandra/38199275#38199275

相关内容