背景:
阅读新闻
PHP的安装以及验证Apache
[日期:2012-02-20] 来源:Linux社区 作者:anljf [字体:]
Php安装
tar jxf php-5.3.8.tar.bz2
cd php-5.3.8
./configure --with-apxs2=/usr/local/apache2/bin/apxs--with-mysql
make
make install
编译php报错情况
php-5.3.8]# ./configure--with-apxs2=/usr/local/apache/bin/apxs --with-mysql
checking for specifiedlocation of the MySQL UNIX socket... no
configure: error: Cannotfind MySQL header files under yes.
Note that the MySQLclient library is not bundled anymore!
原因是没有找到mysql库的位置
现在把上述命令改成如下:
./configure--with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
如果编译成功的话应该显示如下结束信息:
Generatingfiles
updatingcache ./config.cache
creating./config.status
creatingphp5.spec
creatingmain/build-defs.h
creatingscripts/phpize
creatingscripts/man1/phpize.1
creatingscripts/php-config
creatingscripts/man1/php-config.1
creatingsapi/cli/php.1
creatingmain/php_config.h
creatingmain/internal_functions.c
creatingmain/internal_functions_cli.c
+--------------------------------------------------------------------+
|License: |
|This software is subject to the PHP License, available in this |
|distribution in the file LICENSE. Bycontinuing 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. |
+--------------------------------------------------------------------+
Thankyou for using PHP.
截图如下:
相关资讯 Apache
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯