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

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

    for cantos Casandra 2.4.3 was deprecated, I updated perivious post:

    sudo yum update
    sudo yum install automake cmake gcc gcc-c++ git libtool openssl-devel wget  gmp gmp-devel boost php-devel pcre-devel git
    pushd /tmp
    wget http://dist.libuv.org/dist/v1.8.0/libuv-v1.8.0.tar.gz
    tar xzf libuv-v1.8.0.tar.gz
    pushd libuv-v1.8.0
    sh autogen.sh
    ./configure
    sudo make install
    popd
    popd
    sudo wget http://downloads.datastax.com/cpp-driver/centos/7/dependencies/libuv/v1.8.0/libuv-1.8.0-1.el7.centos.x86_64.rpm
    sudo wget http://downloads.datastax.com/cpp-driver/centos/7/dependencies/libuv/v1.8.0/libuv-devel-1.8.0-1.el7.centos.x86_64.rpm
    sudo wget https://downloads.datastax.com/cpp-driver/centos/7/cassandra/v2.8.0/cassandra-cpp-driver-2.8.0-1.el7.centos.x86_64.rpm
    sudo wget https://downloads.datastax.com/cpp-driver/centos/7/cassandra/v2.8.0/cassandra-cpp-driver-devel-2.8.0-1.el7.centos.x86_64.rpm
    sudo rpm -ivh libuv-1.8.0-1.el7.centos.x86_64.rpm
    sudo rpm -ivh libuv-devel-1.8.0-1.el7.centos.x86_64.rpm
    sudo rpm -ivh cassandra-cpp-driver-2.8.0-1.el7.centos.x86_64.rpm
    sudo rpm -ivh cassandra-cpp-driver-devel-2.8.0-1.el7.centos.x86_64.rpm 
    sudo yum update
    sudo pecl install cassandra
    sudo yum update
    

提交回复
热议问题