pecl install cassandra throws: “error: Unable to load libcassandra”

后端 未结 8 1174
时光取名叫无心
时光取名叫无心 2021-01-12 05:04
pecl install cassandra

produces an error:

configure: error: Unable to load libcassandra

ERROR: `/tmp/pear/temp/cassandra/

8条回答
  •  借酒劲吻你
    2021-01-12 05:40

    For ubuntu 14.04: Installation steps are:

    sudo apt-get install php-pear php5-dev libgmp-dev libpcre3-dev g++ make cmake libssl-dev openssl
    wget downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.8.0/libuv_1.8.0-1_amd64.deb
    wget downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.8.0/libuv-dev_1.8.0-1_amd64.deb
    wget downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra/v2.4.2/cassandra-cpp-driver_2.4.2-1_amd64.deb
    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
    sudo dpkg -i libuv-dev_1.8.0-1_amd64.deb
    sudo dpkg -i cassandra-cpp-driver_2.4.2-1_amd64.deb
    sudo dpkg -i cassandra-cpp-driver-dev_2.4.2-1_amd64.deb
    
    pecl install cassandra
    
    ADD extension=cassandra.so in php.ini
    
    restart the PHP process
    

提交回复
热议问题