Home > Article > Web Front-end > Detailed explanation of php module compilation examples
This article mainly shares with you the detailed explanation of PHP module compilation examples, mainly in the form of code, hoping to help everyone.
php模块编译 ============================================ 一:模块编译步骤 1.1:执行 phpize ~]# /usr/local/php5/bin/phpize 1.2:执行 php-config ~]# ./configure --with-php-config=/usr/local/php5/bin/php-config 1.3:make 和 make install ~]# make ~]# make install Installing shared extensions: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/ 1.4:加入 php.ini ~]# vim /etc/php5/php.ini extension=swoole.so 备注: phpize 和 php-config 找到自己环境变量下的就行。 在源码编译时安装包目录下 ext/ 目录就是 php 的扩展,可以在此处执行命令,编译成为 php 模块。
Related recommendations:
Use compileall module in Python to compile source files into pyc files
The above is the detailed content of Detailed explanation of php module compilation examples. For more information, please follow other related articles on the PHP Chinese website!