Getting this error "Warning: PHP Startup: Unable to load dynamic library 'couchbase.so'", please help guys

Hi for the context, I installed this
pecl install https://packages.couchbase.com/clients/php/couchbase-4.0.0.tgz on MacBook Air M1

then when i check “php” on terminal, this displays

Warning: PHP Startup: Unable to load dynamic library 'couchbase.so' (tried: /opt/homebrew/lib/php/pecl/20210902/couchbase.so (dlopen(/opt/homebrew/lib/php/pecl/20210902/couchbase.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20210902/couchbase.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))), /opt/homebrew/lib/php/pecl/20210902/couchbase.so.so (dlopen(/opt/homebrew/lib/php/pecl/20210902/couchbase.so.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20210902/couchbase.so.so' (no such file))) in Unknown on line 0

I need help because I’m stuck here, thanks.

@avsej can you please assist further ?

Hello @gelopi_ghost were you able to resolve this ?

Did you go through the full installation guide, this has more information with respect to setup. Also (may be it doesn’t matter) but can you try pecl install couchbase command ?