Error Installing PECL Package: Mysql_xdevapi

别说谁变了你拦得住时间么 提交于 2021-02-07 19:38:12

问题


I'm getting the following error when i run this command

sudo pecl install mysql_xdevapi

Error:

/private/tmp/pear/temp/pear-build-nabilashahidhnTBCl/mysql_xdevapi-8.0.12/libtool: line 1280: xmysqlnd/proto_gen/mysqlx_connection.loT: No such file or directory
mkdir xmysqlnd/proto_gen/.libs
mkdir: xmysqlnd/proto_gen: No such file or directory
make: *** [xmysqlnd/proto_gen/mysqlx_connection.lo] Error 1
ERROR: `make' failed

How do I get rid of this?


回答1:


The MySQL X DevAPI PECL Extension

You can find the MySQL X DevAPI among the many PECL extensions and you can get the latest tarball of source code and also a link to the homepage. And on that home page are directions for installing/configure the extension. The docs say to do the followings and assume you already have MySQL 8.0.11 installed (or go to https://dev.mysql.com/downloads for the MySQL apt repo software; Install it and then run sudo apt-get install mysql-shell mysql-server).

$ apt install build-essential libprotobuf-dev libboost-dev openssl protobuf-compiler
$ add-apt-repository ppa:ondrej/php
$ apt install php7.2-cli php7.2-dev php7.2-mysql php7.2-pdo php7.2-xml
$ pecl install mysql_xdevapi



回答2:


In my case I have to change php version to php7.3 , php7.4 failed to install mysql_xdevapi from pecl



来源:https://stackoverflow.com/questions/52144241/error-installing-pecl-package-mysql-xdevapi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!