Get the App
SLTechnology News&Howtos  ›  Database  › 

Php5.5.38 adds mysqli extension

Shulou Source: shulou.com Published: 2022-06-01 04:24:47 10月03日 Update

Compiling is normal:

. / configure-- prefix=/usr/local/mysqli-- with-php-config=/usr/local/php/bin/php-config-- with-mysqli=/usr/local/mysql/bin/mysql_config

The following error is reported during make:

/ usr/local/mysql/include/mysql/my_config.h:1147:1: warning: "PACKAGE_VERSION" redefined

In file included from / usr/local/php/include/php/TSRM/tsrm_config.h:1

From / usr/local/php/include/php/TSRM/tsrm_config_common.h:13

From / usr/local/php/include/php/TSRM/tsrm_virtual_cwd.h:27

From / usr/local/php/include/php/main/php.h:401

From / usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:29:

/ usr/local/php/include/php/main/../main/php_config.h:2113:1: warning: this is the location of the previous definition

/ usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:36:47: error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory

Make: * * [mysqli_api.lo] Error 1

Solution:

Modify vim / usr/local/php-5.5.38/ext/mysqli/mysqli_api.c file

Change # include "ext/mysqlnd/mysql_float_to_double.h" to an absolute path:

# include "/ usr/local/php-5.5.38/ext/mysqlnd/mysql_float_to_double.h"

Tags: Time file method path error compile Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi Shulou Tech Info Docker MariaDB