Learning puppet VM error _S_create_c_locale name not valid
I Downloaded the Puppet learning VM and imported it in Virtualbox 5.0.0 on OS X. When I execute puppet commands it gives an error. For instance:
[root@learning ~]# puppet module search graphite terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted (core dumped)
I searched the forum but haven't found an answer.
How do I fix this?
edit: I've given the VM 4gb of RAM and 2 cores, as per the instructions.