duangu9997
2011-07-08 00:25
浏览 644
已采纳

如何在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?

图片转代码服务由CSDN问答提供 功能建议

我正在尝试在Windows中使用symfony,当我运行检查配置脚本时,会给我下一个错误 :

  [[WARNING]] posix_isatty()可用:FAILED 
 ***安装并启用php_posix扩展名(用于着色CLI输出)***  
   
 
 

如何在Windows中安装php_posix,或者无法在Windows中安装?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dongli1887 2011-07-08 00:34
    已采纳

    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 2011-07-10 18:52

    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.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题