Ubuntu 14.4 + php7 + gettext = living hell

php
trusty
circle.yml

#1

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:

extension=php_gettext.dll

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:

machine:
php:
version: 7.0.2

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


Problem getting gettext to work on running builds
Problem getting gettext to work on running builds
#2

@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.


#3

Nice!! Looking forward hearing from you


#4

@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.

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

  php:
    version: 7.0.4

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


#5

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.


#6

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.


#7

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?


#8