Theseto optionss need to match有人遇到过这样的怪问题吗

16:03 提问
mac下安装memcache时,Unable to initialize module
我在命令行下输入php -v
PHP Warning:
PHP Startup: memcache: Unable to initialize module
Module compiled with module API=
compiled with module API=
These options need to match
in Unknown on line 0
PHP 5.5.14 (cli) (built: Sep
Copyright (c)
The PHP Group
Zend Engine v2.5.0, Copyright (c)
Zend Technologies
按赞数排序
你是在mac服务器上安装 memcache服务端,还是在mac操作系统上安装memcache客户端扩展?
其他相关推荐
其他相似问题2696人阅读
C/C++(9)
& & & &这些问题,还是说明了。在windows下开发PHP扩展的环境,不够完美,但是有时候我们不得不在windows下进行开发。所以遇到问题就狂吐,然后狂解决,然后几经折磨考验后,终于解决了或者放弃了。这里列举一些问题,参考一下吧。
1.有时候在ext文件夹下你添加的扩展,可能导致
cscript /nologo configure.js --with-php-build=&F:\php_win\win32build& --without-libxml
--disable-odbc
无法正常执行,所以在搭建php开发环境的时候,保证ext目录是官方给出,把自己的扩展源文件项目先不要放到ext目录下
如果你在启动apache中有报错为:
PHP Warning: PHP Startup: martin: Unable to initialize module\nModule compiled with build ID=API,TS\nPHP compiled with build ID=API,TS,VC6\nThese options need to match\n in Unknown on line 0
Warning: PHP Startup: martin: Unable to initialize module
Module compiled with build ID=API,TS
PHP compiled with build ID=API,TS,VC6
These options need to match
in Unknown on line 0
如果cscript /nologo configure.js --with-php-build=&F:\php_win\win32build& --without-libxml
--disable-odbc
脚本执行成功的话是不会出现的,因为这个脚步会检查你的vc版本,进行配置。
所以你的开发环境要和你的Lamp环境保持一致,就不会出现版本同一问题。都是由一个编译器版本编译的就可以了
3.没有找到config.w32.h
这个你懂的,没找到,说明生成,总不能让你自己写一个
4.待续,补充
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:998151次
积分:12634
积分:12634
排名:第1114名
原创:301篇
转载:28篇
评论:68条
文章:57篇
阅读:147950
文章:45篇
阅读:290686
(1)(2)(2)(2)(2)(2)(2)(1)(11)(14)(1)(1)(2)(1)(1)(1)(1)(6)(4)(3)(7)(5)(6)(5)(13)(7)(19)(13)(35)(92)(12)(6)(3)(5)(15)(9)(2)(11)(5)(1)(1)温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
引用PHP Warning: PHP Startup: memcache: Unable to initialize moduleModule compiled with build ID=API,TS,VC6PHP compiled with build ID=API,TS,VC9These options need to matchin Unknown on line 0PHP源码经过编译后, 有几个需要注意的地方:& 编译器, 线程安全,& 调试,& 版本编译器指编译时使用的编译器.线程安全指是否开启了PHP的线程安全层.调试指是否开启了PHP调试模式.Module compiled with build ID=API,TS,VC6PHP compiled with build ID=API,TS,VC9这两句是说:模块使用了发行版的php构建工具, 开启线程安全, 未启用调试模式, 编译器为VC6PHP使用了发行版的php构建工具, 开启线程安全, 未启用调试模式, 编译器为VC9所以, 你的问题在于两者使用了不同的编译器编译了.因此, 你需要用VC9以线程安全非调试模式重新编译一下你的memcache模块. 或者你从网上找别人编译好的
阅读(962)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'php startup memcache unable to initialize module 解决方案',
blogAbstract:'转于:/lgh_2002/blog/static//查看apache错误日志PHP \nWarning: &PHP Startup: memcache: Unable to initialize module Module \ncompiled with module API= PHP & &compiled with module \nAPI= These options need to match in Unknown on line 0 PHP \nWarning: &PHP Startup: memcache: Unable to initialize module Module \ncompiled',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:1,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:true,
hostIntro:'',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}问题对人有帮助,内容完整,我也想知道答案
问题没有实际价值,缺少关键内容,没有改进余地
在CLI模式运行PHP,给出警告:
PHP Warning:
PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=
compiled with module API=
These options need to match
in Unknown on line 0
PHP Warning:
PHP Startup: pgsql: Unable to initialize module
Module compiled with module API=
compiled with module API=
These options need to match
in Unknown on line 0
看提示应该是说pgsql和php用的api版本不一致,可是google了好半天,没有好到办法如何重新编译pgsql。谁帮忙看看哈。
答案对人有帮助,有参考价值
答案没帮助,是错误的答案,答非所问
你首先搞清楚,出问题的是 php-pgsql 模块,不是 pgsql 这个数据库。
你的模块使用的是旧版本的 PHP API,而 PHP 已经是新版本的 API 了。也就是说,你的 PHP 版本和 php-pgsql 模块的版本差异过大。
你是从哪里安装的 PHP 又是从哪里安装的 php-pgsql 啊?如果是 Linux 的话,推荐从软件源里安装相关包,这样版本一定是兼容的。
分享到微博?
Hi,欢迎来到 SegmentFault 技术社区!⊙▽⊙ 在这里,你可以提出编程相关的疑惑,关注感兴趣的问题,对认可的回答投赞同票;大家会帮你解决编程的问题,和你探讨技术更新,为你的回答投上赞同票。
明天提醒我
关闭理由:
删除理由:
忽略理由:
推广(招聘、广告、SEO 等)方面的内容
与已有问题重复(请编辑该提问指向已有相同问题)
答非所问,不符合答题要求
宜作评论而非答案
带有人身攻击、辱骂、仇恨等违反条款的内容
无法获得确切结果的问题
非开发直接相关的问题
非技术提问的讨论型问题
其他原因(请补充说明)
我要该,理由是:PHP Startup redis: Unable to initialize module deinitialize 梦三国initialize oleinitializ-php教程-PHP中文网QQ群微信公众号还没有收藏PHP Startup redis: Unable to initialize module deinitialize 梦三国initialize oleinitializ最近在做php连接redis的实验,遇到一个问题语法是php代码直接使用php命令来测试是没有问题的。使用lnmp环境也是没有问题的,但是lamp就是不可以,最后查看http的日志终于找到问题所在了。php测试代码如下:&?php
session_start();
if (!isset($_SESSION['TEST'])) {
$_SESSION['TEST'] = time();
$_SESSION['TEST3'] = time();
print $_SESSION['TEST'];
print &&br&&br&&;
print $_SESSION['TEST3'];
print &&br&&/br&&br&&/br&&;
print session_id();
?&http log:[Sun Apr 24 23:06:47 2016] [notice] SIGHUP received.
Attempting to restart
PHP Warning:
PHP Startup: redis: Unable to initialize module\nModule compiled with module API=\nPHP
compiled with module API=\nThese options need to match\n in Unknown on line 0
[Sun Apr 24 23:06:47 2016] [notice] Apache/2.2.29 (Unix) PHP/5.4.45 configured -- resuming normal operations
[Sun Apr 24 23:24:21 2016] [notice] SIGHUP received.
Attempting to restart
PHP Warning:
PHP Startup: redis: Unable to initialize module\nModule compiled with module API=\nPHP
compiled with module API=\nThese options need to match\n in Unknown on line 0
[Sun Apr 24 23:24:21 2016] [notice] Apache/2.2.29 (Unix) PHP/5.4.45 configured -- resuming normal operations分析:日志非常明显的说明当时编译php使用的api为“API=”,而redis编译使用的api为“API=”ps:由于之前多次安装过不同版本的apache,所以我自己都不清楚当时编译php时使用的那个版本了(有点尴尬:()解决方法如下:
使用yum安装一个高版本的httpd,然后重新启动一个httpd服务就可以了(把配置文件和webroot更新一下)。测试:curl -x 127.1.1.1:80 /session.php
&br&&br&&br&&/br&&br&&/br&r05vrgop80r2f75t91ss1a2lv5
以上就介绍了PHP Startup redis: Unable to initialize module,包括了initialize,startup方面的内容,希望对PHP教程有兴趣的朋友有所帮助。共3篇915点赞收藏分享:.&猜你喜欢PHP中文网:独家原创,永久免费的在线,php技术学习阵地!
All Rights Reserved | 皖B2-QQ群:关注微信公众号}

我要回帖

更多关于 tomatchsnapshot 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信