Small Q: impregnable pass apocalypse is really like iron, and now the beginning of the more. From the beginning, Cangshan like the sea, setting sun like blood. ——***
Currently PHP version 7.0, because of the need, so I tried to install a bit, during the period also encountered a lot of problems, some of the problems and the old version of almost, I do not elaborate, a friend of the problem can give me a message, a discussion;
-------------------------------------------------------------------------------------------------
First: After the installation is not able to find the php-fpm.conf configuration file, in fact, a lot about FPM configuration files are not, but my level is not high, can only realize php-fpm.conf; At that time I did not notice directly in the extracted source package copied a roughly similar www.conf as the main configuration file, copy a Start the file, a little configuration is also able to start success, no big problem.
Until I add the extension module to PHP when the make compile has been prompted to reduce the number of directory files error problem;
"I was wondering if it was/usr/local/php/bin/phpizen build./configure will also generate some of the directory files required for make, if so then my mistake is in the PHP installation process, is not because of the compilation of PHP has omitted some of the options and lead to Phpize "generation" of incomplete (in fact, I do not feel that the problem, but do not try how to know it), online said maybe the role of--ENABLE-FPM is to open the fastcgi function of PHP is to open the PHP-FPM function 】
So I went to understand the pressure PHP directory, again./configure--enable-fpm >> make >> make install;
After completion of the unexpected discovery with php-fpm.conf and other files, but again compile the module is not successful, but it is not reactive and return.
Second: (This is the point to say)
Generally download PHP module to PECL, the inside of the modules are available, no problem;
So I downloaded the good, start compiling, first build the Configure file with Phpizen, then./confoigure first precompiled, very successful no problem;
After make
[[Email protected] memcache-3.0.8]# make/bin/sh /usr/local/src/memcache-3.0.8/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/local/src/memcache-3.0.8 -dphp_atom_inc -i/usr/local/src/memcache-3.0.8/include -i/usr/local/src/memcache-3.0.8/main -i/ usr/local/src/memcache-3.0.8 -i/usr/local/include/php -i/usr/local/include/php/main -i/usr/ local/include/php/tsrm -i/usr/local/include/php/zend -i/usr/local/include/php/ext -i/usr/local/ Include/php/ext/date/lib -dhave_config_h -g -o2 -c /usr/local /src/memcache-3.0.8/memcache.c -o memcache.lo mkdir .libs cc -i/usr/local/ include/php -i. -i/usr/local/src/memcache-3.0.8 -dphp_atom_inc -i/usr/local/src/ memcache-3.0.8/include -i/usr/local/src/memcache-3.0.8/main -i/usr/local/src/memcache-3.0.8 -i/ usr/local/include/php -i/usr/local/include/php/main -i/usr/local/include/php/tsrm -i/usr/local/include/php/zend -i/usr/local/ include/php/ext -i/usr/local/include/php/ext/date/lib -dhave_config_h -g -o2 -c /usr/local/src/memcache-3.0.8/memcache.c -fpic -dpic -o .libs/memcache.oin file included from /usr/local/src/memcache-3.0.8/php_memcache.h:34:0, from /usr/local/src/ memcache-3.0.8/memcache.c:30:/usr/local/src/memcache-3.0.8/memcache_pool.h:45:47: Fatal error: EXT/STANDARD/PHP_ Smart_str_public.h: No file or directory #include "ext/standard/php_smart_str_public.h" ^ compile interrupt. make: *** [memcache.lo] Error 1
This error occurred, missing this file, just started not much thought, went to the internet to find a template for this file, added in,
And then make this happen.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/31/wKioL1Z3pOTw1tb8AAFZrhUc1bQ914.png "title=" Dfbhff . PNG "alt=" Wkiol1z3potw1tb8aafzrhuc1bq914.png "/>
This game is a bit tricky, because it is not possible to file a file to change the configuration ah, so the error is not in this;
Before I used the low version of L N M to compile the memcache, the same source package, very normal, so I opened a low version of the PHP test, the other configuration is the same as the high version (only the system version and PHP version is not the same), Memcache package also used the same , each of them is normal, OK;
So the version of the problem accounted for 80% .
I use make error to compare files within two modules
650) this.width=650; "style=" width:700px;height:363px; "src=" http://s1.51cto.com/wyfs02/M00/78/32/ Wkiom1z3pzow82azaafdovkcwla163.png "title=" skldsklv. PNG "alt=" Wkiom1z3pzow82azaafdovkcwla163.png "height=" 363 "border=" 0 "hspace=" 0 "vspace=" 0 "width=" ""/>
php-7.0 Error compiling the module