【问题标题】:Difficulties installing php enchant on Windows在 Windows 上安装 php 附魔的困难
【发布时间】:2014-04-06 22:09:07
【问题描述】:

好的,我已经阅读了 php.net 文档,我已经浏览了包括 stackoverflow 在内的众多网站以寻求解决方案,但没有任何帮助。所以我在问,有没有人可以发布一个权威的指南来让你在 Windows 上工作?

我的设置是:

  • Windows 7
  • WAMP 服务器 2.0
  • PHP 5.3.0

PHP位于

C:/wamp/bin/php/php5.3.0

我从http://downloads.php.net/pierre/php_enchant-1.1.0-5.3-vc9-x86.zip 下载了 php_enchant.dll 并解压缩了它的内容。我按照自述文件的说明做了,并且

  • 将 php_enchant.dll 移至 C:/wamp/bin/php/php5.3.0/ext(我的 扩展路径)
  • 将所有其他 dll 文件移动到 C:/wamp/bin/php/php5.3.0
  • 在我的 php.ini 中添加了 extension=php_enchant.dll
  • 重启httpd

对于字典,我按照这里的第一个答案PHP: Enchant Spell Checking not working. Configuration in Windows?

  • 我从 Mozilla 下载了正确的字典 zip 文件
  • 我把它们放在 C:/wamp/bin/php/php5.3.0/share/myspell/dicts 里面

在所有这些尝试运行之后 enchant_broker_init(); 给出一个致命错误。我真的不知道还能做什么。如果有人能给我一些建议,我将不胜感激。

编辑:好的,所以我的 apache 错误日志给出了以下错误

PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.0/ext/php_enchant.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.\r\n in Unknown on line 0 <b>Warning</b>:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.0/ext/php_enchant.dll' - The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.in <b>Unknown</b> on line <b>0</b>[Wed Mar 05 15:28:02 2014] [notice] Child 6128: Child process is running

现在拔掉我的头发。

【问题讨论】:

    标签: php windows dll wamp enchant


    【解决方案1】:

    您真的是指 WAMPServer 2.0 吗?

    那个附魔是用 VC9 编译的,检查你的 PHP 和 Apache 是否也用 VC9 编译,如果不是,你需要一个附魔 dll,它使用与你的 Apache 和 PHP 相同的编译器编译。

    因为你有 PHP5.3.0,我猜它们是用 VC6 编译的。

    【讨论】:

    • 您好,感谢您的回复。我放弃并开始使用 Vagrant。立即让一切正常工作。我认为 WAMP 和 MAMP 的时代已经结束。
    • 没问题,感谢您的提示。 Vagrant 看起来很有趣,我自己可能很快就会玩。
    • 酷!如果您有兴趣,我已经写了一篇关于使用 PuPHPet 进行设置的博客文章 rohandeshpande.com/blog/…
    【解决方案2】:

    遇到了同样的问题。将 PHP 路径添加到 Windows PATH 变量并重新启动 wampserver。

    【讨论】:

    • 不能通过修改 PATH 设置来工作,但你需要这样做才能使用新的 php。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-04-14
    • 2014-07-14
    • 2015-03-24
    • 2021-06-11
    • 1970-01-01
    • 2011-06-04
    • 2012-07-27
    相关资源
    最近更新 更多