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