Installing Moodle Behat Composer Symfony lib-icu php-intl on cpanel/WHM

While trying to install behat (using composer) on my Moodle development environment on cpanel Centos 6 I came across the following error:

Problem 1
    - Installation request for symfony/icu v1.2.2 -> satisfiable by symfony/icu[v1.2.2].
    - symfony/icu v1.2.2 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.

My phpinfo revealed that despite having the latest cpanel install for PHP (5.4.30) it came with php-intl version 1.1.0 (& ICU version 4.2.1)

The behat used by Moodle wants ICU version 4.4, there appears to be no way to update the ICU version on Centos 6 to 4.4, 4.2.1 is as good as it gets right now.

Moodle requires symfony 2.4 (which is no longer maintained) and is the only version of symfony which can't self-repair this situation, this error would not occur in symfony 2.2, 2.3, 2.5, or 2.6. How is that for luck? Moodle 2.9 behat requires Symfony 2.4 which requires ICU 4.4 and Centos 6 wont install it, great. 

After trying many things eventually I deleted (well renamed, I never delete anything) the composer.lock file and tried the install again (php admin/tool/behat/cli/init.php) and bizarrelly the install worked.

No idea of the consequences of this.... user beware.

Make a Comment

Website and Software Development Services
Tweed Heads & Southern Gold Coast

Our network of experienced computer programmers can develop custom software solutions in any language on any platform.

Our Talents

Freelance Power

We maintain a network of local freelance computer programmers that we place in teams to match project requirements. This gives us expertise in a broad range of industries, languages & platforms

Fix, Upgrade or New?

We can fix broken legacy systems, plan and oversee a difficult upgrade, add or unlock new features to your existing software. Or install and set-up new systems from scratch, including hardware and software


We can build solutions fast, Software as a Service (Saas), apps, web applications, desktop software, Minimum Viable Product using Agile Development practices


We can build simple to complex websites, we can deliver the whole package including site design, branding, logos, domains and hosting


C/C++, Java, JavaScript,
Python, Swift, Meteor,
Objective C


MongoDB, NoSQL


Linux, Mac, Windows, iPhone, Android, Smart Phones, Tablets


Wordpress, Drupal, Magento, Moodle, Sharepoint Online, Office 365