Phpbrew: Unable to install mcrypt for PHP 7.2.0

Created on 1 Dec 2017  路  3Comments  路  Source: phpbrew/phpbrew

Output

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')

Expected Result

https://pecl.php.net/package/mcrypt has version 1.0.1 for 7.2.0 and newer.

Command

phpbrew ext install mcrypt

Build Log

None

Platform

OS: Ubuntu 17.10

Running PHP: 7.2.0

Installing PHP: 7.2.0

Support Extension Installer

Most helpful comment

I was able to install mcrypt in phpbrew via
phpbrew --debug ext install [email protected]:php/pecl-encryption-mcrypt.git

All 3 comments

Issue Solved when installing php7.2-mcrypt

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

escopecz picture escopecz  路  3Comments

oNdsen picture oNdsen  路  5Comments

Gamesh picture Gamesh  路  3Comments

chris001 picture chris001  路  3Comments

sam452 picture sam452  路  3Comments