[root@web php-5.4.16]
[root@web php-5.4.16]
[root@web php-5.4.16]
--with-mysql= /usr/local/mysql :mysql相关
--with-openssl :让其能够支持openssl功能
--with-mysqli= /usr/local/mysql/bin/mysql_config :mysql的另外一个接口,让mysql与php交互的接口;接口程序是mysql_config,是个二进制程序
-- enable -mbstring :多字节string,支持中文或者是非一个字节能够表示的语言
--with-gd : 支持gd库
--with-freetpye- dir :支持freetype功能,freetype:自由的可移植的字体库,可以实现去引用特定字体的
--with-jpeg- dir :支持jpeg图片
--with-png- dir :支持png图片
--with-zlib:互联网上常用的,通用格式的压缩库,让数据文件先压缩再传送给客户端
--with-libxml- dir :xml(扩展标记语言),现在的很多系统在实现数据交互的时候,都要基于xml来实现,所以要php支持xml,并且让其知道其库文件所在位置
-- enable -sockets:让php支持基于套接字的通信
--with-apxs2:基于apxs实现让php编译成apace模块
--with-mcrypt:支持加密功能的,额外的加密库
--with-config- file -path :php配置文件的路径放在了什么地方 主配置文件是php.ini
--with-config- file -scan :主配置文件的片段,也是配置文件,这个路径下以.ini结尾的都是配置文件片段
--with-bz2 :压缩库
-- enable -maintainer-zts :这一项的使用取决于apache是什么类型的,apache使用的是prefork就不需要;如果使用的是event或者是worker就要添加这一项;apache以线程工作就必须编译这一项
Generating files
configure: creating . /config .status
creating main /internal_functions .c
creating main /internal_functions_cli .c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
config.status: creating php5.spec
config.status: creating main /build-defs .h
config.status: creating scripts /phpize
config.status: creating scripts /man1/phpize .1
config.status: creating scripts /php-config
config.status: creating scripts /man1/php-config .1
config.status: creating sapi /cli/php .1
config.status: creating main /php_config .h
config.status: executing default commands
[root@web php-5.4.16]
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso .sh SH_LIBTOOL= '/usr/local/apr/build-1/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apr/build-1/libtool --mode= install install libphp5.la /usr/local/apache/modules/
libtool: install : install .libs /libphp5 .so /usr/local/apache/modules/libphp5 .so
libtool: install : install .libs /libphp5 .lai /usr/local/apache/modules/libphp5 .la
libtool: install : warning: remember to run `libtool --finish /root/src/php-5 .4.16 /libs '
chmod 755 /usr/local/apache/modules/libphp5 .so
[activating module `php5' in /etc/httpd/httpd .conf]
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/php/man/man1/
Installing PHP CGI binary: /usr/local/php/bin/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/php/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/lib/php/
[PEAR] Archive_Tar - installed: 1.3.11
[PEAR] Console_Getopt - installed: 1.3.1
warning: pear /PEAR requires package "pear/Structures_Graph" (recommended version 1.0.4)
warning: pear /PEAR requires package "pear/XML_Util" (recommended version 1.2.1)
[PEAR] PEAR - installed: 1.9.4
Wrote PEAR system config file at: /usr/local/php/etc/pear .conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.1
/root/src/php-5 .4.16 /build/shtool install -c ext /phar/phar .phar /usr/local/php/bin
ln -s -f /usr/local/php/bin/phar .phar /usr/local/php/bin/phar
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
[root@web php-5.4.16]
|