PHP 7.2 or 7.4 won't update due to error

crazygrape

Verified User
Joined
Jan 29, 2015
Messages
5
Location
Bathgate, Scotland
Trying to update php 7.2 and 7.4 and get the following error at the end:

  • configure: error: Unable to find required gettext library

  • *** There was an error while trying to configure php. Check the configure file

  • Done!
Anyone any ideas? gettext is installed so is gettext dev
 
From within DirectAdmin control panel under CustomBuild go to Customise Compilation and add in --with-gettext=/path/to/folder


Excellent thanks for your help. There does not seem to be a lot of help on the net for gettext.
Would you know how to find the path of gettext as nothing being thrown up in Google?
 
Use the whereis command.

Code:
[root@ ~]# whereis gettext
gettext: /usr/bin/gettext /usr/bin/gettext.sh /usr/lib64/gettext /usr/share/gettext /usr/share/man/man1/gettext.1.gz /usr/share/info/gettext.info.gz
 
On CentOS gettext is /usr/bin/gettext if it is installed. It looks like you may not have it installed so
Code:
yum install gettext
 
Thanks for all the help and replies, I ended up rebuilding the server from scratch and restoring the accounts from backup.All running perfect now.
 
Back
Top