Problem with libuv dependency

97 views
Skip to first unread message

LucasGD

unread,
Nov 7, 2018, 3:58:09 PM11/7/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Hi, i'm trying to install the DSE PHP extension (https://docs.datastax.com/en/developer/php-driver-dse/1.1/) on Linux Ubuntu 14.04, so, what i did:

- Installed the libuv and libuv-dev from http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies/libuv/v1.23.0/ (last version)

- Installed the DSE-Cpp-Driver and DSE-Cpp-Driver-dev from http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dse/v1.6.0/ (last version)

- Try to install the DSE-PHP-Driver from http://downloads.datastax.com/php-driver/ubuntu/14.04/dse/v1.1.1/ (the 7.1 PHP version, that is the one i have installed in my OS).

All the packages i installed are the last one versions.

But, when trying to install the DSE-PHP-Driver i get the error:


dpkg: dependency problems prevent configuration of php7.1-dse-driver:
php7.1-dse-driver depends on libuv; however:
Package libuv is not installed.

dpkg: error processing package php7.1-dse-driver (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php7.1-dse-driver


But, i checked and the libuv was installed successfully:


lucas@lucas-desktop:~/cassapkgs$ ldconfig -p | grep libuv
libuv.so.1 (libc6,x86-64) => /usr/local/lib/libuv.so.1
libuv.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libuv.so.1
libuv.so (libc6,x86-64) => /usr/local/lib/libuv.so
libuv.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libuv.so
lucas@lucas-desktop:~/cassapkgs$


The packages i'm using:


lucas@lucas-desktop:~/cassapkgs$ ls -lh
total 1,6M
-rw-rw-r-- 1 lucas lucas 533K Nov 7 16:52 dse-cpp-driver_1.6.0-1_amd64.deb
-rw-rw-r-- 1 lucas lucas 739K Nov 7 16:52 dse-cpp-driver-dev_1.6.0-1_amd64.deb
-rw-rw-r-- 1 lucas lucas 62K Nov 7 16:53 libuv1_1.23.0-1_amd64.deb
-rw-rw-r-- 1 lucas lucas 81K Nov 7 16:53 libuv1-dev_1.23.0-1_amd64.deb
-rw-rw-r-- 1 lucas lucas 153K Nov 7 16:57 php7.1-dse-driver_1.1.1_stable-1_amd64.deb


The installation process:


lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i libuv1_1.23.0-1_amd64.deb
Selecting previously unselected package libuv1.
(Reading database ... 1943083 files and directories currently installed.)
Preparing to unpack libuv1_1.23.0-1_amd64.deb ...
Unpacking libuv1 (1.23.0-1) ...
Setting up libuv1 (1.23.0-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i libuv1-dev_1.23.0-1_amd64.deb
Selecting previously unselected package libuv1-dev.
(Reading database ... 1943088 files and directories currently installed.)
Preparing to unpack libuv1-dev_1.23.0-1_amd64.deb ...
Unpacking libuv1-dev (1.23.0-1) ...
Setting up libuv1-dev (1.23.0-1) ...
lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i dse-cpp-driver_1.6.0-1_amd64.deb
Selecting previously unselected package dse-cpp-driver.
(Reading database ... 1943101 files and directories currently installed.)
Preparing to unpack dse-cpp-driver_1.6.0-1_amd64.deb ...
Unpacking dse-cpp-driver (1.6.0-1) ...
Setting up dse-cpp-driver (1.6.0-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i dse-cpp-driver-dev_1.6.0-1_amd64.deb
Selecting previously unselected package dse-cpp-driver-dev.
(Reading database ... 1943106 files and directories currently installed.)
Preparing to unpack dse-cpp-driver-dev_1.6.0-1_amd64.deb ...
Unpacking dse-cpp-driver-dev (1.6.0-1) ...
Setting up dse-cpp-driver-dev (1.6.0-1) ...
lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i php7.1-dse-driver_1.1.1_stable-1_amd64.deb
Selecting previously unselected package php7.1-dse-driver.
(Reading database ... 1943116 files and directories currently installed.)
Preparing to unpack php7.1-dse-driver_1.1.1_stable-1_amd64.deb ...
Unpacking php7.1-dse-driver (1.1.1~stable-1) ...
dpkg: dependency problems prevent configuration of php7.1-dse-driver:
php7.1-dse-driver depends on libuv; however:
Package libuv is not installed.

dpkg: error processing package php7.1-dse-driver (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php7.1-dse-driver


Can anyone help me on this?

Thanks.

Message has been deleted

LucasGD

unread,
Nov 8, 2018, 12:07:33 AM11/8/18
to DataStax PHP Driver for Apache Cassandra User Mailing List

More information about it:

lucas@lucas-desktop:/etc/php$ dpkg -l dse-cpp-driver
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================
ii dse-cpp-driver 1.6.0-1 amd64 C/C++ client driver for DataStax Enterprise - runtime library
lucas@lucas-desktop:/etc/php$ dpkg -l libuv1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================
ii libuv1 1.23.0-1 amd64 cross-platform asychronous I/O - runtime library
lucas@lucas-desktop:/etc/php$

LucasGD

unread,
Nov 8, 2018, 12:54:20 AM11/8/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Em quarta-feira, 7 de novembro de 2018 18:58:09 UTC-2, LucasGD escreveu:

I got it!

I had to install the old dse-cpp-driver and libuv versions. The versions i installed:

dse-cpp-driver_1.5.0-1_amd64.deb
dse-cpp-driver-dev_1.5.0-1_amd64.deb
libuv_1.20.0-1_amd64.deb
libuv-dev_1.20.0-1_amd64.deb

After that, the installing of dse-php-driver ran ok:

lucas@lucas-desktop:~/cassapkgs$ sudo dpkg -i php7.1-dse-driver_1.1.1_stable-1_amd64.deb
Selecting previously unselected package php7.1-dse-driver.

(Reading database ... 1943115 files and directories currently installed.)


Preparing to unpack php7.1-dse-driver_1.1.1_stable-1_amd64.deb ...
Unpacking php7.1-dse-driver (1.1.1~stable-1) ...

Setting up php7.1-dse-driver (1.1.1~stable-1) ...
lucas@lucas-desktop:~/cassapkgs$

After that i had still to put the extension=dse.so in the php.ini and it's working!

Message has been deleted

LucasGD

unread,
Nov 8, 2018, 1:11:14 AM11/8/18
to DataStax PHP Driver for Apache Cassandra User Mailing List
Em quarta-feira, 7 de novembro de 2018 18:58:09 UTC-2, LucasGD escreveu:

lucas@lucas-desktop:~/cassapkgs$ dpkg -l dse-cpp-driver


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================

ii dse-cpp-driver 1.5.0-1 amd64 C/C++ client driver for DataStax Enterprise - runtime library

lucas@lucas-desktop:~/cassapkgs$ dpkg -l libuv


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================

ii libuv 1.20.0-1 amd64 cross-platform asychronous I/O - runtime library

lucas@lucas-desktop:~/cassapkgs$ dpkg -l php7.1-dse-driver


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================

ii php7.1-dse-driver 1.1.1~stable-1 amd64 PHP client driver for DataStax Enterprise
lucas@lucas-desktop:~/cassapkgs$

Reply all
Reply to author
Forward
0 new messages