unable to build using couchbase extension
coquer opened this issue · 5 comments
the pipeline is unable to install couchbase extension, given these parameters:
env:
PHP_VERSION: 7.4
PHP_UNIT_VERSION: 8
PHP_EXTENSIONS: apcu memcached sockets intl json xdebug couchbase
Building PHP 7.4 with extensions: apcu memcached sockets intl json xdebug couchbase ...
The result from the build always ends up with this error.
configure: error: Please reinstall the libcouchbase distribution -
libcouchbase.h should be <libcouchbase-dir>/include and
libcouchbase.a should be in <libcouchbase-dir>/lib
ERROR: `/tmp/pear/temp/couchbase/configure --with-php-config=/usr/local/bin/php-config' failed
any ideas?
original: php-actions/phpunit#35
Thanks for the report. I'll take a look into it and report back my findings. Maybe couchbase needs a different installation step?
That is what I thought too, so I added this to my pipeline:
- name: Add couchbase dependecies
run: sudo wget -O - https://packages.couchbase.com/clients/c/repos/deb/couchbase.key | sudo apt-key add -; echo "deb https://packages.couchbase.com/clients/c/repos/deb/ubuntu2004 focal focal/main" | sudo tee /etc/apt/sources.list.d/couchbase.list ; sudo apt-get update
- name: Install couchbase dependecies
run: sudo apt-get -y install libcouchbase3 libcouchbase-dev libcouchbase3-tools libcouchbase-dbg libcouchbase3-libev libcouchbase3-libevent
- name: Re install couchbase
run: sudo pecl install couchbase
but the error still persist, I guess is related to way PHP is built inside the github action. Any ideas from your end?
Interesting. I'm not familiar with Couchbase, but I'll use this as an excuse to learn a bit about it so I can fix this issue for you. It'd be useful to get an example application up and running with couchbase and PHP. If you could help point me in the right direction (docker container / set up script / etc.) that'd be great, otherwise I'll just follow the official docs.
Thanks for taking the time to have a look.
Anyhow, the way we use the combination is to store documents, and since laravel does follow the principle to have running MySQL and Couchbase databases to run unit test and integration test.
Right now I am moving from GitLab to GitHub, + AWS so there a lot of pieces moving. I attached the current image I use in GitLab to run the testing.
https://gist.github.com/jycr753/45984daa18ea857dcb39c49626591ca6
Maybe it can give you an idea of what is wrong? tbh I haven't figured it out myself :(
Thanks, I'll take a look and report back here.