Bug #77206 [Opn]: my_global.h: No such file or directory
| From: | jackie dot luo at kpmg dot com | Date: | Tue, 27 Nov 2018 07:54:57 +0000 |
| Subject: | Bug #77206 [Opn]: my_global.h: No such file or directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218152@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77206&edit=1
ID: 77206
User updated by: jackie dot luo at kpmg dot com
Reported by: jackie dot luo at kpmg dot com
Summary: my_global.h: No such file or directory
Status: Open
Type: Bug
Package: *General Issues
Operating System: CentOS Linux release 7.5.1804 (C
PHP Version: 7.2.12
Block user comment: N
Private report: N
New Comment:
Hi spam2 at rhsoft dot net,
Thanks for your response.
May I know how to install the mysql devel packages?
actually I did not use the yum install mysql option, I directly download the mysql.tar.gz file and
use the ./mysqld --initialize installation, which is not source code installation as well.
furthermore, build with mysqlnd, libmysql is not needed for php over the last decade. May I know if
you are meaning I can directly use the embedded mysqlnd?
Previous Comments:
------------------------------------------------------------------------
[2018-11-27 07:46:38] spam2 at rhsoft dot net
do you really have the mysql DEVEL packages installed?
anyways, build with mysqlnd, libmysql is not needed for php over the last decade
------------------------------------------------------------------------
[2018-11-27 07:22:15] jackie dot luo at kpmg dot com
Description:
------------
I am setting up a PHP environment which is used to combine with mysql and Nginx server.
I already installed mysql and Nginx server. when I used source code installation method to compile
the files.
it terminated with an error:
/usr/local/php-7.2.12/libtool --silent --preserve-dup-deps --mode=compile cc
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/mysqli/ -I/usr/local/php-7.2.12/ext/mysqli/ -DPHP_ATOM_INC
-I/usr/local/php-7.2.12/include -I/usr/local/php-7.2.12/main -I/usr/local/php-7.2.12
-I/usr/local/php-7.2.12/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2
-I/usr/local/php-7.2.12/ext/mbstring/oniguruma -I/usr/local/php-7.2.12/ext/mbstring/libmbfl
-I/usr/local/php-7.2.12/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include
-I/usr/local/php-7.2.12/ext/sqlite3/libsqlite -I/usr/local/php-7.2.12/ext/zip/lib
-I/usr/local/php-7.2.12/TSRM -I/usr/local/php-7.2.12/Zend -I/usr/include -g -O2
-fvisibility=hidden -DZEND_SIGNALS -c /usr/local/php-7.2.12/ext/mysqli/mysqli.c -o
ext/mysqli/mysqli.lo
In file included from /usr/local/php-7.2.12/ext/mysqli/mysqli.c:34:0:
/usr/local/php-7.2.12/ext/mysqli/php_mysqli_structs.h:63:23: fatal error: my_global.h: No such file
or directory
#include <my_global.h>
^
compilation terminated.
make: *** [ext/mysqli/mysqli.lo] Error 1
the PHP version is 7.2.12, I downloaded the source code from official website.
Test script:
---------------
none
Expected result:
----------------
none
Actual result:
--------------
I already installed all necessary features, but the compilation still failed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77206&edit=1