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.
Problem installing mysql_xdevapi on MacOS
Moderators: egami, macek, gesf
-
- php-forum Fan User
- Posts: 90
- Joined: Mon Jun 08, 2020 2:00 am
- Contact:
Have you tried searching your system for the file any.h?
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.
/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.