Problem installing mysql_xdevapi on MacOS

Do you have questions regarding Pecl or Pear? ask here!

Moderators: egami, macek, gesf

Post Reply
KarlH
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Feb 20, 2021 2:42 pm

Sat Feb 20, 2021 3:06 pm

I'm trying to use PECL to install the mysql_xdevapi extension for PHP, but the installer keeps complaining that it can't find Protobuf. PECL asks for "protobuf library install dir" without explaining what directory that is. When I choose "autodetect", the process at one point prints out

checking for protobuf install dir... yes

but still ends with the following:

configure: checking for protobuf yes
checking google/protobuf/any.h usability... no
checking google/protobuf/any.h presence... no
checking for google/protobuf/any.h... no
checking for main in -lprotobuf... yes
checking for protoc... /usr/local/bin/protoc
configure: error: protobuf not found, please install it in system, consider use of --with-protobuf or setting MYSQL_XDEVAPI_PROTOBUF_ROOT

Which directory am I supposed to provide? I've tried entering the one that contains the subdirectory google/protobuf, but that makes no difference. PECL can't locate the any.h file and concludes that Protobuf isn't installed.
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 140
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sun Feb 21, 2021 6:19 am

Have you tried searching your system for the file any.h?
KarlH
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Feb 20, 2021 2:42 pm

Sun Feb 21, 2021 7:14 am

I already know where it is. Right here:

/usr/local/Cellar/protobuf/3.14.0/include/google/protobuf/any.h

But I've gone through the installation process several times, trying each one of these directories for the "protobuf library install dir":

/usr/local/Cellar
/usr/local/Cellar/protobuf
/usr/local/Cellar/protobuf/3.14.0
/usr/local/Cellar/protobuf/3.14.0/include
/usr/local/Cellar/protobuf/3.14.0/include/google
/usr/local/Cellar/protobuf/3.14.0/include/google/protobuf


and PECL still can't find the any.h file.
Post Reply