Search code examples
cassandradatastax-php-driver

"Unable to load libuv" while installing PHP driver extension for Cassandra on Centos 7.1


checking for uv_version in -luv... no
configure: error: Unable to load libuv
ERROR: `/var/tmp/cassandra/configure' failed

enter image description here


Solution

  • CentOS packages, libuv are not yet available in a repo for CentOS 7. ( The pramberger.repo has libuv for CentOS 5, CentOS 6 ).

    It's easy to build CentOS 7 packages from the Fedora 22 SRPM, libuv-1.4.0-1.fc22.src.rpm http://dl.fedoraproject.org/pub/fedora/linux/releases/22/Everything/source/SRPMS/l/libuv-1.4.0-1.fc22.src.rpm

    $ rpmbuild -bb libuv.spec
    

    .. Or you can use my result, { libuv-1.4.0-1.el7.centos.x86_64.rpm, libuv-devel-1.4.0-1.el7.centos.x86_64.rpm, libuv-static-1.4.0-1.el7.centos.x86_64.rpm }.

    All three packages in one tar file "libuv-1.4.0-1.el7.centos.x86_64.tar" : https://drive.google.com/file/d/0B7S255p3kFXNTUlwOTFTQkJ1V28/view?usp=sharing

    Installing the libuv packages : 1) $ cd libuv-1.4.0-1.el7.centos.x86_64/

    2) # yum install *.rpm