Oh, this is really strange. Seems like some debian-specific issue.
apt update
apt install -y gnupg2
echo "deb https://packages.couchbase.com/clients/c/repos/deb/debian10 buster buster/main" > /etc/apt/sources.list.d/libcouchbase.list
curl https://packages.couchbase.com/clients/c/repos/rpm/couchbase.key | apt-key add -
apt update
apt install -y libcouchbase-dev
And then manually install from the same file
cd /tmp
curl -O https://packages.couchbase.com/clients/php/couchbase-3.0.2.tgz
tar xf couchbase-3.0.2.tgz
cd couchbase-3.0.2
phpize
./configure --with-couchbase
make
make install
to verify that it actually install, you can check modules list:
# php -dextension=couchbase -m
[PHP Modules]
Core
couchbase
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
I’m looking into why it does not work with pecl (and cannot create that directory automatically)