Linux下已编译PHP增加扩展so的方法,关键phpize 和config.m4
LINUX下PHP已经编译,如何新增so扩展。 用到的一个sh:/usr/local/php5/bin/phpize 原理:用phpize在压缩包里面找到对应的对应的扩展文件夹,在里面执行phpize,具体步骤: PHP安装路径:/usr/local/php5 PHP源码路径:/home/default7/lamp/php-5.5.13 扩展
LINUX下PHP已经编译,如何新增so扩展。
用到的一个sh:/usr/local/php5/bin/phpize
原理:用phpize在压缩包里面找到对应的对应的扩展文件夹,在里面执行phpize,具体步骤:
PHP安装路径:/usr/local/php5
PHP源码路径:/home/default7/lamp/php-5.5.13
扩展假设zlib:/home/default7/lamp/php-5.5.13/ext/zlib
执行代码:
ln -s /usr/local/php5/bin/phpize /usr/bin/phpize cd /home/default7/lamp/php-5.5.13/ext/zlib mv config0.m4 config.m4 phpize //这里提示报错,安装bz2,bz2-devel yum install bz2 bz2-devel ./configure --with-php-config=/usr/local/php5/bin/php-config make make test make install vim /etc/php.ini ##加入extension=bz2.so
(by default7#zbphp.com)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 Linux new version
SublimeText3 Linux latest version

Zend Studio 13.0.1
Powerful PHP integrated development environment