Composer Install – Fatal error: unexpected St13runtime_error: locale::facet::_S_create_c_locale name not valid

On a vagrant box managed by a project I recently encountered this error when trying to run composer install.

Fatal error: unexpected St13runtime_error: locale::facet::_S_create_c_locale name not valid

To resolve this edit /etc/default/locale and add the following lines

LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Save the file then from the command line enter

export LC_ALL=C

Thanks to http://laravel.io/forum/08-28-2014-hhvm-instead-of-php-laravel-composer-installation-error for the information

Leave a Reply

Your email address will not be published. Required fields are marked *