Hello,How does this affect software as Wordpress? How do we enable mcrypt for php 7.2 using PECL without breaking EasyApache 4?
yum install libmcrypt
yum install libmcrypt-devel
/opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1
Dear All,Hello,
Thank you.Code:yum install libmcrypt yum install libmcrypt -devel /opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1
[email protected] [~]# /opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1
downloading mcrypt-1.0.1.tgz ...
Starting to download mcrypt-1.0.1.tgz (33,782 bytes)
.........done: 33,782 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
libmcrypt prefix? [autodetect] :
building in /root/tmp/pear/pear-build-rootjInJtH/mcrypt-1.0.1
running: /root/tmp/pear/mcrypt/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --with-mcrypt
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php72/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php72/root/usr/include/php -I/opt/cpanel/ea-php72/root/usr/include/php/main -I/opt/cpanel/ea-php72/root/usr/include/php/TSRM -I/opt/cpanel/ea-php72/root/usr/include/php/Zend -I/opt/cpanel/ea-php72/root/usr/include/php/ext -I/opt/cpanel/ea-php72/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php72/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php72/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for mcrypt support... yes, shared
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
ERROR: `/root/tmp/pear/mcrypt/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --with-mcrypt' failed
Installing that PECL module using cPanel or WHM isn't supported because it's not released as a STABLE PECL module. The maintainers have only released the "snapshot" build of the module at:I tried to setup mcyrpt php extension to php 7.2 on cpanel module installers page.
It looks like the "yum install libmcrypt-devel" command referenced in my last response incorrectly included a space after the hyphen. I've corrected it so that it correctly shows:configure: error: mcrypt.h not found. Please reinstall libmcrypt. ERROR: `/root/tmp/pear/mcrypt/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --with-mcrypt' failed
yum install libmcrypt-devel
Did land on an error:It looks like the "yum install libmcrypt-devel" command referenced in my last response incorrectly included a space after the hyphen. I've corrected it so that it correctly shows:
Can you run this command and then try running the PECL install command again to see if that solves the issue?Code:yum install libmcrypt-devel
Thank you.
[email protected] [~]# yum install libmcrypt-devel
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 85.13.201.2
* cpanel-addons-production-feed: 85.13.201.2
* base: mirror.sov.uk.goscomb.net
* centosplus: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* updates: mirror.sov.uk.goscomb.net
No package libmcrypt-devel available.
Error: Nothing to do
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install libmcrypt
yum install libmcrypt-devel
/opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1
Hello @Nirjonadda,@cPanelMichael Please can you let me know that what does mcrypt extension and why this support removed in php 7.2? So mcrypt extension no more used/needed or not important?
Hello,I get the error Requires: libc.so.6(GLIBC_2.14)(64bit)
Note that I also did a yum install libc.so.6 and that installation was successful. Even after that yum install libmcrypt fails with same error message
rpm -qa|grep glibc
ls -al /etc/yum.repos.d