How to fix no colors in Symfony2 Console Component

After updating from PHP 5.4 to PHP 5.6 I saw there was no colors anymore when running commands with the console component.

symfony-console-component-no-colors

This happend because I didn’t install php-poxis extension. So it was fixed by just running this Mac Ports command:

$ sudo port install php56-posix

symfony-console-component-with-colors

Note: If you use another version of PHP change the version number or just use php-poxis.

Ref: http://serverfault.com/a/409966

You might also like

Turn on syntax highlighting for vi and vim in Mac OS X
Turning syntax highlighting for vi and vim in Mac OS X is as simple as creating a file called ".vimrc"...

Turn on syntax highlighting for vi and vim in Mac OS X
Turning syntax highlighting for vi and vim in Mac OS X is as simple as creating a file called ".vimrc"...

Add colors to the text in terminal application in Mac OS X
Just add the following 2 lines to your /etc/profile, ~/.profile or ~/.bash_profile:export CLICOLOR=1 export...

Add colors to the text in terminal application in Mac OS X
Just add the following 2 lines to your /etc/profile, ~/.profile or ~/.bash_profile:export CLICOLOR=1 export...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.