can't install mysql_xdevapi on ami linux2

258 views Asked by At

I need mysql_xdevapi extension. trying through sudo pecl install mysql_xdevapi

error: C++ preprocessor "/lib/cpp" fails sanity check - fixed.
error: boost not found - fixed.
error: protobuf not found - this is the main problem((

...bla bla bla...
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/bin/protoc
configure: error: protobuf not found, please install it in system, consider use of --with-protobuf or setting MYSQL_XDEVAPI_PROTOBUF_ROOT
ERROR: `/var/tmp/mysql_xdevapi/configure --with-php-config=/usr/bin/php-config --with-boost --with-protobuf' failed

after sudo yum install -y protobuf-compiler
protoc --version libprotoc 2.5.0
But still doesn't work.
Okay, Point out protobuf library install dir [autodetect] : /home/ec2-user/.lical/include (I used this manual ) - steel doesn't work, because there are no files it needs.
enter image description here
no any.h
Any ideas?

ami linux2, php 7.3.2 libprotoc 2.5.0 -instaled and 'release' - unpacked in /home/ec2-user/.lical/include

1

There are 1 answers

0
Tig On

take protoboof from here (unpack src to /usr/local as example) and protoc from here (/bin/protoc to /usr/bin)
do not forget to specify the folder during installation (/usr/local/src)