jquery教程

推荐列表 站点导航

当前位置:首页 > jquery > jquery教程 >

有关phpize的一点知识

来源:网络整理  作者:  发布时间:2020-12-21 19:26
有关phpize的一点知识,中英混合,呵呵,有需要的朋友不妨一看。Compiling shared PECL extensions with phpize...

A successful install will have created extname.so and put it into the PHP extensions directory. You'll need to and adjust php.ini and add an extension=extname.so line before you can use the extension.

五、剩下是配置php.ini

步骤总结:

$ phpize  运行phpize。路径不一定在当前目录下,去寻找phpize运行。之后会生成了一个configure文件

假如你的服务器上安装了多个版本php,那么需要告诉phpize要建立基于哪个版本的扩展。通过使用--with-php-config=指定你使用哪个php版本。

Compiling shared PECL extensions with phpize

Execute phpize --help to display additional usage information.

phpize的作用可以这样理解:侦测环境(phpize工具是在php安装目录下,所以是要根据该php的配置情况生成对应的configure文件),建立一个configure文件。必须在一个目录下去运行phpize。那么phpize就知道你的的环境是哪个目录,并且configure文件建立在该目录下。

$ ./configure     运行。    如果生成基于数据库的扩展,需要加上参数运行:1,--with-php-config。2,"--with-具体的数据库参数".比如, --with-pgsql、--with-mysql

一、cd /usr/src/php源码包目录/ext/扩展目录/

有关phpize的一点知识,中英混合,呵呵,有需要的朋友不妨一看。

The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:

二、/usr/local/php5314/bin/phpize

# make install 将会生成一个extname.so的扩展,被放到了PHP extensions directory

当php编译完成后,php安装目录下的bin目录下会有phpize这个脚本文件。所以是去安装好的php安装目录先去找。

疑问:phpize是在php安装目录下的一个文件。比如我安装了两个php5.2 和php5.3那么使用phpize也要使用对应版本的phpize才行吧,此时使用--with-php-config有什么作用?

三、./configure --with-php-config=/usr/local/php5314/bin/php-config

比如:--with-php-config=/usr/local/php524/bin/php-config

phpize工具一般在哪里?
关于php-config文件:是在php编译生成后(安装好),放在安装目录下的一个文件。

If the system is missing the phpize command, and precompiled packages (like RPM's) are used, be sure to also install the appropriate devel version of the PHP package as they often include the phpize command along with the appropriate header files to build PHP and its extensions.

$ cd extname  进入到源码包中的扩展目录

四、make && make install

$ make

Sometimes, using the pecl installer is not an option. This could be because you're behind a firewall, or it could be because the extension you want to install is not available as a PECL compatible package, such as unreleased extensions from SVN. If you need to build such an extension, you can use the lower-level build tools to perform the build manually.

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/jq/jc/6759.shtml

相关文章
最新文章
PHP识别相片是否是颠倒的 PHP识别相片是否是颠倒的

时间:2020-12-28

python编程有哪些ide python编程有哪些ide

时间:2020-12-28

python开发工程师是做什么 python开发工程师是做什么

时间:2020-12-28

php构造函数的作用 php构造函数的作用

时间:2020-12-28

php怎么跟数据库连接 php怎么跟数据库连接

时间:2020-12-28

php实现顺序线性表 php实现顺序线性表

时间:2020-12-28

Python多重继承中的菱形继 Python多重继承中的菱形继

时间:2020-12-28

php中break的作用 php中break的作用

时间:2020-12-28

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

有关phpize的一点知识

2020-12-21 编辑:

A successful install will have created extname.so and put it into the PHP extensions directory. You'll need to and adjust php.ini and add an extension=extname.so line before you can use the extension.

五、剩下是配置php.ini

步骤总结:

$ phpize  运行phpize。路径不一定在当前目录下,去寻找phpize运行。之后会生成了一个configure文件

假如你的服务器上安装了多个版本php,那么需要告诉phpize要建立基于哪个版本的扩展。通过使用--with-php-config=指定你使用哪个php版本。

Compiling shared PECL extensions with phpize

Execute phpize --help to display additional usage information.

phpize的作用可以这样理解:侦测环境(phpize工具是在php安装目录下,所以是要根据该php的配置情况生成对应的configure文件),建立一个configure文件。必须在一个目录下去运行phpize。那么phpize就知道你的的环境是哪个目录,并且configure文件建立在该目录下。

$ ./configure     运行。    如果生成基于数据库的扩展,需要加上参数运行:1,--with-php-config。2,"--with-具体的数据库参数".比如, --with-pgsql、--with-mysql

一、cd /usr/src/php源码包目录/ext/扩展目录/

有关phpize的一点知识,中英混合,呵呵,有需要的朋友不妨一看。

The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:

二、/usr/local/php5314/bin/phpize

# make install 将会生成一个extname.so的扩展,被放到了PHP extensions directory

当php编译完成后,php安装目录下的bin目录下会有phpize这个脚本文件。所以是去安装好的php安装目录先去找。

疑问:phpize是在php安装目录下的一个文件。比如我安装了两个php5.2 和php5.3那么使用phpize也要使用对应版本的phpize才行吧,此时使用--with-php-config有什么作用?

三、./configure --with-php-config=/usr/local/php5314/bin/php-config

比如:--with-php-config=/usr/local/php524/bin/php-config

phpize工具一般在哪里?
关于php-config文件:是在php编译生成后(安装好),放在安装目录下的一个文件。

If the system is missing the phpize command, and precompiled packages (like RPM's) are used, be sure to also install the appropriate devel version of the PHP package as they often include the phpize command along with the appropriate header files to build PHP and its extensions.

$ cd extname  进入到源码包中的扩展目录

四、make && make install

$ make

Sometimes, using the pecl installer is not an option. This could be because you're behind a firewall, or it could be because the extension you want to install is not available as a PECL compatible package, such as unreleased extensions from SVN. If you need to build such an extension, you can use the lower-level build tools to perform the build manually.

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/jq/jc/6759.shtml

相关文章

风云图片

推荐阅读

返回jquery教程频道首页