0

I am using Linux Mint 19.1. My PHP configuration is like below

enter image description here

I am getting below error while I am trying to install mcrypt.

enter image description here

Mehdi
  • 717
  • 1
  • 7
  • 21
abu abu
  • 6,599
  • 19
  • 74
  • 131
  • 1
    Does it end with "XML Extension not found"? – showdev Feb 24 '20 at 09:38
  • Thanks @showdev. Yes, https://i.stack.imgur.com/uGnke.png – abu abu Feb 24 '20 at 09:42
  • 1
    Does this answer your question? [Pear error "XML Extension not found" on Ubuntu 14.04 after installing php-xml & php-xml7.0](https://stackoverflow.com/questions/40999752/pear-error-xml-extension-not-found-on-ubuntu-14-04-after-installing-php-xml). Also see [PECL command produces long list of errors](https://serverfault.com/questions/589877/pecl-command-produces-long-list-of-errors) and [mcrypt is deprecated, what is the alternative?](https://stackoverflow.com/questions/41272257/mcrypt-is-deprecated-what-is-the-alternative) – showdev Feb 24 '20 at 09:43
  • Thanks @showdev. I am getting this error https://i.stack.imgur.com/e9TM6.png – abu abu Feb 24 '20 at 14:39
  • @showdev, I am getting this error https://i.stack.imgur.com/xaf3R.png – abu abu Feb 24 '20 at 14:42

1 Answers1

1

Try out using these commands

To install the dependencies :

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install php7.2-dev
sudo apt-get -y install libmcrypt-dev

Once the dependencies have been installed, you can install mcrypt with the command:

sudo pecl install mcrypt-1.0.1
Simran Munot
  • 87
  • 1
  • 2
  • 10