php7を再installしようと、configure & make したところ、 「fatal error: my_global.h: No such file or directory」の 以前はなかったerrorが発生。
参考urlを見て、 mysql_config → mysqlnd にすることで解消
発生したエラー
$ cat /etc/redhat-release
CentOS Linux release 8.3.2011
$ pwd
/home/end0tknr/tmp/php-7.2.24
$ ./configure \
--with-apxs2=/usr/bin/apxs \
--enable-mbstring \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql=/usr/bin/mysql_config \
--with-pdo-pgsql=/usr/bin/pg_config \
--with-curl=/usr/lib
$ make
:
In file included from /home/end0tknr/tmp/php-7.2.24/ext/mysqli/mysqli.c:34:
/home/end0tknr/tmp/php-7.2.24/ext/mysqli/php_mysqli_structs.h:63:10:
fatal error: my_global.h: No such file or directory
#include <my_global.h>
^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1123: ext/mysqli/mysqli.lo] Error 1
解消した configure
./configure \ --with-apxs2=/usr/bin/apxs \ --enable-mbstring \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-pdo-pgsql=/usr/bin/pg_config \ --with-curl=/usr/lib