错误:configure: error: libevent >= 1.4.11 could not be found
解决:yum -y install libevent libevent-devel
错误:configure: error: Please reinstall the mysql distributio
解决:yum -y install mysql-devel
错误:make: *** [sapi/fpm/php-fpm] error 1
解决:用make ZEND_EXTRA_LIBS='-liconv'编译
错误:configure: error: XML configuration could not be found
解决:yum -y install libxml2 libxml2-devel
错误:configure: error: No curses/termcap library found
解决:yum -y install ncurses ncurses-devel
错误:configure: error: xml2-config not found
解决:yum -y install libxml2 libxml2-devel
错误:configure: error: Cannot find OpenSSL's <evp.h>
解决:yum install openssl openssl-devel
错误:configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/
解决:yum install curl curl-devel
错误:configure: error: Cannot find ldap.h
解决:yum install openldap openldap-devel
错误:configure: error: libjpeg.(a|so) not found
解决:yum install libjpeglibjpeg -devel
错误:configure: error: libpng.(a|so) not found.
解决:yum install libpnglibpng –devel
错误:onfigure: error: freetype.h not found.
解决:yum install freetype-devel
错误:configure: error: cannot find output from lex; giving up
解决:yum -y install flex
错误:configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
解决:yum -y install zlib-devel openssl-devel
错误:Configure: error: Unable to locate gmp.h
解决:yum install gmp-devel
错误:Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
解决:yum install mysql-devel
更多的补充内容:
安装php: ./configure
configure: error: XML configuration could not be found
yum -y install libxml2 libxml2-devel
Cannot find OpenSSL's <evp.h>
yum install openssl openssl-devel
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
#yum install libxml2 libxml2-devel (For RedHat & Fedora)
# aptitude install libxml2-dev (For Ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
#yum install openssl openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
# yum install bzip2 bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
# yum install curl curl-devel (For RedHat & Fedora)
# install libcurl4-gnutls-dev (For Ubuntu)
5) Configure: error: libjpeg.(also) not found.
# yum install libjpeg libjpeg-devel
6) Configure: error: libpng.(also) not found.
# yum install libpng libpng-devel
7) Configure: error: freetype.h not found.
#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h
# yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
# yum install mysql-devel (For RedHat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)
10) Configure: error: Please reinstall the ncurses distribution
# yum install ncurses ncurses-devel
11) Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!
# yum install unixODBC-devel
12) Configure: error: Cannot find pspell
# yum install pspell-devel
13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.
# yum install libmcrypt libmcrypt-devel (For RedHat & Fedora)
# apt-get install libmcrypt-dev
14) Configure: error: snmp.h not found. Check your SNMP installation.
# yum install net-snmp net-snmp-devel
15)
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
# yum install libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
16)
为php编译xcache模块的时候,需要运行phpize
得到了一个错误
#/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.
通过安装 autoconf 可以解决
centos下执行 yum install autoconf 即可
Ubuntu下执行 apt-get install autoconf 即可
17)
# /usr/local/php/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module
修改方法:
[root@centos lnmp]# cd php-5.2.14ext/
[root@centos ext]# ./ext_skel --extname=my_module
Creating directory my_module
Creating basic files: config.m4 config.w32 .cvsignore my_module.c php_my_module.h CREDITS EXPERIMENTAL tests/001.phpt my_module.php [done].
To use your new extension, you will have to execute the following steps:
1. $ cd ..
2. $ vi ext/my_module/config.m4
3. $ ./buildconf
4. $ ./configure --[with|enable]-my_module
5. $ make
6. $ ./php -f ext/my_module/my_module.php
7. $ vi ext/my_module/my_module.c
8. $ make
Repeat steps 3-6 until you are satisfied with ext/my_module/config.m4 and
step 6 confirms that your module is compiled into PHP. Then, start writing
code and repeat the last two steps as often as necessary.
[root@centos ext]# cd my_module/
[root@centos my_module]# vim config.m4
根据你自己的选择将
dnl PHP_ARG_WITH(my_module, for my_module support,
dnl Make sure that the comment is aligned:
dnl [ --with-my_module Include my_module support])
修改成
PHP_ARG_WITH(my_module, for my_module support,
Make sure that the comment is aligned:
[ --with-my_module Include my_module support])
或者将
dnl PHP_ARG_ENABLE(my_module, whether to enable my_module support,
dnl Make sure that the comment is aligned:
dnl [ --enable-my_module Enable my_module support])
修改成
PHP_ARG_ENABLE(my_module, whether to enable my_module support,
Make sure that the comment is aligned:
[ --enable-my_module Enable my_module support])
[root@centos my_module]# vim my_module.c
将文件其中的下列代码进行修改
/* Every user visible function must have an entry in my_module_functions[].
*/
function_entry my_module_functions[] = {
PHP_FE(say_hello, NULL) /* ?添加着一行代码 */
PHP_FE(confirm_my_module_compiled, NULL) /* For testing, remove later. */
{NULL, NULL, NULL} /* Must be the last line in my_module_functions[] */
};
在文件的最后添加下列代码
PHP_FUNCTION(say_hello)
{
zend_printf("hello sdomain!");
}
再修改:php_sdomain.h
vi php_sdomain.h
在PHP_FUNCTION(confirm_my_module_compiled ); /* For testing, remove later. */ 这行的下面添加一行:
PHP_FUNCTION(say_hello); /* For testing, remove later. */
保存文件退出
然后我们就可以在这个目录下使用上面的命令了
/usr/local/php/bin/phpize
执行以后会看到下面的
[root@ns sdomain]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20050606
[root@ns sdomain]#
然后执行./configure --with-php-config=/usr/local/php/bin/php-config
然后执行make
make install
然后他会把对应的so文件生成放到PHP安装目录下面的一个文件夹,并提示在在什么地方,然后再把里面的SO文件拷到你存放SO文件的地方
即你在php.ini里面的extension_dir所指定的位置
最后一步是你在php.ini文件中打开这个扩展
extension=sdomain.so
然后
重新起动apache
以上错误都是在整个编译安装遇到的问题,然后结合网上的资料,找到的解决方法,总结到这个地方,希望能帮到大家!
相关推荐:
ChatGPT,您的银行卡被拒绝了?别慌,这些方法帮您快速解决问题!,ai给那个标声调
企业关键字-助力企业成功的隐形动力,闽侯县企业网站建设
seo逻辑是什么,seo思路 ,语音主播怎么ai写作业
AI一键生成原创文章,让创作更高效更轻松!
seo自己做什么,自己做seo需要花钱吗 ,ai850775
SEO考核:如何通过精准的SEO优化提升网站排名与流量,茶艺营销推广方案怎么写
SEO短视:为何眼前的成效不能成为长久的策略?,网站上线seo优化
为什么seo对企业重要,seo对企业进行网络营销的价值 ,ai李沁换脸鲍鱼
ChatGPT付款银行卡被拒绝?解决方案全解析!,小发猫ai智能写作查重能过吗
文章AI指令提升写作效率的智能助手
SEO表述:如何通过精准优化让你的内容脱颖而出,江阴网站建设怎么样啊
SEO分类中内部优化的有:让你的网站脱颖而出!,by ai
SEM+SEO:助力企业数字化营销的双剑合璧之道,ai头像丑
seo监控什么意思,seo数据监控 ,ai panda眼镜架
AI智能软件:未来科技的核心力量
SEO优化需要花钱吗?从零起步,如何让SEO成为企业的“隐形财富”,字体如何往ai里面倒
seo组建需要什么条件,seo建站的步骤 ,ai肌肉宝宝
SEM做得好可以取代SEO吗?浅析两者的异同与未来趋势,王道ai
AI免费生成:释放创造力的秘密武器
SEO自行:提升网站流量的秘密武器,邹平县个人网站建设建议
SEO优化10种策略:提升网站排名的有效方法,帅气ai男头白底
ChatGPT怎么突然不能打开了?你需要了解的原因与解决办法,ai写作有什么问题吗怎么解决
ChatGPT198元永久会员,开启智慧之门,体验AI的极致服务!,老孙教ai
文字生成AI:开启创意写作的新纪元
Chato1免费么?揭开这款AI聊天机器人的神秘面纱,交个朋友ai写作
ChatGPT目前,我无法查看或打开附件,但我依然能为你提供全面的帮助,苹果ai谷歌ai
SEO优化关键技巧:提升网站排名的实战攻略,科大讯飞ai论文写作软件
seo需要懂什么源码,seo需要懂什么源码技术 ,ai 纤维
亚马逊中什么是seo,亚马逊sop ,ai临摹中国名画
ChatGPT为什么网址打不开?原因分析与解决方法,文档审核ai
ChatGPT40不收费版本:科技革新,智能助手助力生活与工作,ai医疗武器有哪些
用AI写一篇文章,如何提升你的写作效率与创意
优化收费,助力企业提升效益,实现共赢,宜州餐饮网站建设
AI网页版本:开启智能时代的新篇章,拼音标调ai
SEO地址优化的秘诀:提升网站排名与流量的关键,临沂如何优化网站关键词
文章自动生成AI:助力写作新时代,让创作更高效
用AI征文工具,轻松创作出精彩文章!
SEO优化流程:助力网站快速提升排名的关键策略,1745ai
亚马逊seo是什么公司的,“亚马逊” ,ai玩底特律
常用AI工具,高效智能生活
优化投入,让企业更具竞争力,怎样推广营销方案
在线AI文章生成器开启智能创作新时代
如何利用AI生成高质量文章,提升写作效率与创意?
ChatGPT昨晚突然不能使用,背后真相令人意想不到!,edga ai
SEO优化的利器:提升网站排名的秘密武器,联想ai7g-3笔记本
AI人工智能:改变未来的科技革命
SEO运营是什么职业,seo运营工程师招聘 ,把ai图层改横幅
AI工具,让工作效率翻倍:AI工具教程全面解析
SEO管家:为您的网站保驾护航的智能SEO助手,网站推广作用有哪些类型
SEO学堂:开启数字营销新时代,全面提升网站排名与流量,文山ai营销推广方案