2011-07-08 00:25

如何在Windows中安装php_posix php扩展?


I'm trying to play with symfony in windows, and when I run the check configuration script gives me the next error:

[[WARNING]] The posix_isatty() is available: FAILED
        *** Install and enable the php_posix extension (used to colorized the CLI output) ***

how can I install the php_posix in windows or it's not possible to install in windows?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • dongli1887 dongli1887 10年前

    The POSIX extension cannot be installed on Windows as stated on http://ca3.php.net/manual/en/intro.posix.php.

    Note: This extension is not available on Windows platforms.

    The Windows shell doesn't support color. If you want to play around with Symfony MVC Framework on Windows, you may need to use Cygwin or WAMP (or something similar).

    点赞 评论 复制链接分享
  • drfb52000 drfb52000 10年前

    For colorized output support in Windows, you have two options, ansicon and cygwin. However Symfony2 will only auto-colorize if ANSICON env variable. In cygwin you have to set the variable in ~/.bash_rc.

    Bonus: Also download puTTYCyg for cygwin.

    点赞 评论 复制链接分享