0

Unable to install mcrypt on my updated PHP 7.3.6 on RHEL 7.6 server

I've tried following these steps: Issue in installing php7.2-mcrypt

and few of the other ways to.

# yum install php-pecl
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                               | 2.0 kB  00:00:00
(1/2): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                              | 3.3 MB  00:00:00
(2/2): rhel-7-server-rpms/7Server/x86_64/primary                                                                                                 |  44 MB  00:00:01
rhel-7-server-rpms                                                                                                                                          26177/26177
No package php-pecl available.
Error: Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

# yum install libmcrypt-dev libreadline-dev
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                               | 2.0 kB  00:00:00
No package libmcrypt-dev available.
No package libreadline-dev available.
Error: Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

# pecl install mcrypt-1.0.1
bash: pecl: command not found...
2
  • This seems better suited for Server Fault though read their guidelines before posting.
    – Script47
    Sep 4, 2019 at 15:14
  • mcrypt is deprecated and outdated. Use OpenSSL or sodium instead. Sep 4, 2019 at 23:20

1 Answer 1

0

This can be fixed by installing the yum install php-pear library. This includes the pecl binary.

3
  • Kindly let me know the step by step commands, For your information my PHP 7.3.6 -RHEL 7.6
    – Magendiran
    Sep 5, 2019 at 13:14
  • You have to run the following command: yum install php-pear @Magendiran
    – MaartenDev
    Sep 5, 2019 at 13:19
  • It's not resolve the issue anyway thanks for your support @MaartenDev I've changed the crypt method to open_ssl and my issue got resolved
    – Magendiran
    Sep 6, 2019 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.