简体   繁体   中英

How can I install php_posix php extension in windows?

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?

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).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM