Home > Web Front-end > JS Tutorial > body text

Detailed explanation of php module compilation examples

小云云
Release: 2018-03-19 11:30:22
Original
1197 people have browsed it

This article mainly shares with you the detailed explanation of PHP module compilation examples, mainly in the form of code, hoping to help everyone.

  1. 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 模块。
    Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!