Even with lessc version 1.4.2, when installing enterprise and having the right order in you addons path (enterprise before community addons) you might encounter:
terminate called after throwing an instance of 'St9bad_alloc' what(): std::bad_alloc What to do to solve it?