compiled under linux installation is installed php extension

1. Go to the php source package, locate the extension directory to be installed.
cd /root/php-5.6.26/ext/mbstring

2. In the extension module directory, the phpize program (detection function is kernel version of php, and to generate the appropriate compiler extended configuration, then ./configure current directory files)
/ usr / local / bin / phpize

3. Compile install.
PHP --with-config-./configure = / usr / local / bin / PHP-config
the make
the make the install

 After a successful installation tips:

[root@localhost pdo_mysql]# make install
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/

If the compiler installation process prompts:

fatal error: ext/xxx/xxx.h: No such file or directory

The process proceeds to ext directory, the directory xxx copy of the current can be expanded installation

Guess you like

Origin www.cnblogs.com/liyuanhong/p/12017935.html