Ubuntu 14.4 + php7 + gettext = living hell

We have been fighting to install gettext on a php7 build. But so far what we have concluded: gettext is not installed, and needs to enabled in the .ini file.

I have successfully found the .ini file PHP use, and I have uncommented this line:


However, then I receive the following warning:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/circleci/php/7.0.2/lib/php/extensions/no-debug-non-zts-20151012/php_gettext.dll' - /opt/circleci/php/7.0.2/lib/php/extensions/no-debug-non-zts-20151012/php_gettext.dll: cannot open shared object file: No such file or directory in Unknown on line 0

What am I doing wrong?

If you look a the php documentation for gettext is says: To include GNU gettext support in your PHP build you must add the option --with-gettext[=DIR] where DIR is the gettext install directory. However, we install the php7 using the circle.yml:

version: 7.0.2

Any pointers in the right direction will greatly help. We’re stuck.

@canfiax this sounds like our php7 is built without --with-gettext". Let me see if I can rebuild with the option. I’ll let you know once I rebuild the package.

Nice!! Looking forward hearing from you

@canfiax @lk22 I rebuilt all php with --with-gettext configure option. You can install use them with the following circle.yml. Please replace the version with your own.

    - curl -s https://packagecloud.io/install/repositories/circleci/trusty/script.deb.sh | sudo bash
    - sudo apt-get install circleci-php-7.0.4=4

    version: 7.0.4

If this works, I can ship a new build image that preinstalls the version, so please let me know.

It seems the new PHP works great according to Problem getting gettext to work on running builds

I’ll ship the new build image soon.

1 Like

Hi, I just shipped the new build image. Now you don’t have to install PHP manually to get the configure options. Please let me know if you see any problems.

Hi @kimh i experience issues with installing PHP 7.0.4

i experience following: Version ‘10’ for ‘circleci-php-7.0.4’ was not found

which version should i install instead that has gettext with it?