Environment: CentOS 7
PHP Version: 5.5.20
Description: PHP uses phpize to install the extension readline, after installation can enter the command line interactive mode but after typing the second line of PHP code Error!!
Error:
[Root@localhost
This is now the Phpize version information:
localhost:~ dddd$ Phpize-vConfiguring for:PHP Api version:20100412Zend Module Api no:20100525Zend Extension Api no:220100525
This version of PHP is:
localhost:~ dddd$ Php-iPHP API = 2012111
Sometimes it doesn't work .peclInstall the command. This could be because behind the firewall, or because the extension library you want to install does not have a PECL compatible package, such as an extension library that has not yet been published
Many times, many extension libraries are not added when compiling PHP; many extension libraries are not used only when running web programs, but I have already set up PHP (LNMP, I don't want to re-compile and install it. Now you can use phpize to
In centos6.7, PHP5.6.25 (cli) usrlocalphp56binphpize there is no configure installation file, unable to install, what is the reason. phpize has such an error find the solution: yum-yinstallm4autoconf
In centos 6.7, PHP 5.6.25 (cli)
/Usr/local/php56
Phpize compilation error I used phpize to compile mysql. so, here is my command :. /configure -- with-php-config =/usr/local/php/bin/php-config -- with-mysql =/usr/local/mysql-5.5.24-linux2.6-i686/but the subsequent maket phpize compilation error
I
Phpize compilation error I use phpize to compile mysql. so, this is my command:. configure -- with-php-configusrlocalphpbinphp-config -- with-mysqlusrlocalmysql-5.5.24-linux2.6-i686 but later the maketest shows: 2 failmysql_es phpize compilation
Before has been used phpize way to install the extension, today saw the next useful pecl of this installation and very fast, automatically help you configure the two what is the difference, pecl so brief why do you want a phpize?
Reply content:
such as compile time only execute
bashcd ../php-5.6.8./configure --enable-fpm --with-mysqlmakesudo make install
Then use Phpize./configure-xxxxx in the back.
It's like using Phpize to compile and install, like curl.are in
./lib/php/extensions/
In Linux, PHP has been compiled to add the so extension method. The key is phpize and config. m4. in LINUX, PHP has been compiled and how to add the so extension.
Sh:/usr/local/php5/bin/phpize
Principle: use phpize to find the corresponding
One, the benefits of Phpize
When are we going to use phpize? When we install PHP:
'./configure '--prefix=/usr/local/php '--with-mysql=/usr/local/mysql '--with-zlib-dir '--with-freetype-dir=/ usr '--with-jpeg-dir=/usr '--with-png-dir=/usr
Suddenly want to add a module to PHP, but do not want to recompile PHP, because the real comparison cost time.
Phpize can solve this problem.
CD to PHP's source code directory, into ext.
For example, my work as a need to append mysqli module,
Phpize Installation Extension Solver
The virtual machine system is Linux and is packed with integrated package XAMPP
Because the Redis needs to pass through phpize and XAMPP without this,
So we re-installed a PHP with the same version as XAMPP, and
Install the php extension module using phpize in linux
In linux, after php is successfully installed, an executable script named phpize is generated in the bin directory. This script is used to dynamically install the php extension module.The
using Phpize to dynamically add PHP extensions is something that you often need to do in development, but in MacOS, the first time you use this feature you will inevitably encounter some problems, and this article will provide some common
I just installed php7 in ubuntu. I want to add more extensions. After installing the curl extension source code directory {code...} is phpize dependent on anything? The following is my php environment {code...} just installed php7 in ubuntu. I want
Phpize Installation Extension Solver
The virtual machine system is Linux and is packed with integrated package XAMPP
Because the Redis needs to pass through phpize and XAMPP without this,
So we re-installed a PHP with the same version as XAMPP, and
Just under Ubuntu simply installed a php7, think of what needs to expand and Add.
You're done. To install Curl extensions
SOURCE Directory
# cd ext/curl# phpize//预计生成configure文件 但是不知道为什么没有生成 自然后面的命令就没有执行#./configure --with-php-config=/usr/local/php/
Phpize is used to expand the PHP extension module, through the phpize can build PHP plug-in module
The following is an example of installing OpenSSL
Locate the Ext folder of the source package and find the OpenSSL directory when you enter
Today I want to talk about the php extension in linux.
Next, let's talk about how to make a php extension.First, you must have a set up php environment.I installed php in/usr/local/php. Of courseA php path for configuring php. ini, but pay attention
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.