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

后端 未结 8 1191
时光取名叫无心
时光取名叫无心 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:53

    This works for me on Debian Jessie

    apt-get remove libuv0.10-dev
    git clone https://github.com/libuv/libuv.git
    cd libuv
    git reset --hard v1.19.1
    sh autogen.sh
    ./configure
    make
    make check
    sudo make install
    
    git clone https://github.com/datastax/php-driver.git
    cd php-driver
    git submodule update --init
    cd ext
    ./install.sh
    
    vi /etc/php5/cli/php.ini
    Add extension=cassandra.so
    php -i | grep cassandra
    

提交回复
热议问题