Downloading https://pecl.php.net/rest/r/mcrypt/stable.txt via curl extension
CurlKit\CurlException: (22) The requested URL returned error: 404 Not Found at [https://pecl.php.net/rest/r/mcrypt/stable.txt:The requested URL returned error: 404 Not Found]
Trace:
0) CurlKit\CurlDownloader->request('https://pecl.php.net/rest/r/mcrypt/stable.txt')
1) PhpBrew\Downloader\PhpCurlDownloader->process('https://pecl.php.net/rest/r/mcrypt/stable.txt', '/tmp/phpbrew_9elTSi')
2) PhpBrew\Downloader\BaseDownloader->download('https://pecl.php.net/rest/r/mcrypt/stable.txt')
3) PhpBrew\Downloader\BaseDownloader->request('https://pecl.php.net/rest/r/mcrypt/stable.txt')
4) PhpBrew\Extension\Provider\PeclProvider->getPackageXml('mcrypt', 'stable')
5) PhpBrew\Extension\Provider\PeclProvider->buildPackageDownloadUrl('stable')
6) PhpBrew\Extension\ExtensionDownloader->download(PhpBrew\Extension\Provider\PeclProvider, 'stable')
7) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('mcrypt')
8) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['mcrypt'])
9) CLIFramework\CommandBase->executeWrapper(['mcrypt'])
10) CLIFramework\Application->run(['/usr/local/bin/phpbrew', 'ext', 'install', 'mcrypt'])
11) PhpBrew\Console->runWithTry(['/usr/local/bin/phpbrew', 'ext', 'install', 'mcrypt'])
12) require('phar:///usr/local/bin/phpbrew/scripts/phpbrew-emb.php')
https://pecl.php.net/package/mcrypt has version 1.0.1 for 7.2.0 and newer.
phpbrew ext install mcrypt
None
OS: Ubuntu 17.10
Running PHP: 7.2.0
Installing PHP: 7.2.0
Never mind found https://blog.remirepo.net/post/2015/07/07/About-libmcrypt-and-php-mcrypt. Sorry about the noise
I was also facing the same issue. Check this link https://stackoverflow.com/q/48275494/7713811 to get the right solution for installing it in PHP
I was able to install mcrypt in phpbrew via
phpbrew --debug ext install [email protected]:php/pecl-encryption-mcrypt.git
Most helpful comment
I was able to install mcrypt in phpbrew via
phpbrew --debug ext install [email protected]:php/pecl-encryption-mcrypt.git