duangou6446 2012-09-04 23:31
浏览 43

MAMP 2.1.1上的pcntl安装问题(Mac OS X lion)

I have a problem with pcntl installation. My PHP version is 5.4.4, I followed this tutorial: http://cyberpunx.com/2011/11/pcntl-so-on-osx-lion-and-mamp/

But Pcntl does not load. In php error log I see:

[04-Sep-2012 22:58:16 UTC] PHP Warning: PHP Startup: pcntl: Unable to initialize module Module compiled with module API=20090626 PHP
compiled with module API=20100525 These options need to match

How can I compile pcntl correctly? Thank you for your help!

  • 写回答

2条回答 默认 最新

  • dpzlz08480 2012-09-27 04:13
    关注

    The most likely scenario is that after the upgrade you forgot to update your php.ini to change the extension_dir.

    If you have followed the tutorial to the letter, your extension_dir should be:

    /usr/local/lib/php/extensions/no-debug-non-zts-20100525
    

    Also, don't forget to restart Apache after your php.ini changes.

    评论

报告相同问题?

悬赏问题

  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM