vagrant@ubuntu-xenial:/etc/apt$ sudo pecl install 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
PHP Fatal error: Cannot use result of built-in function in write context in /usr/share/php/Archive/Tar.php on line 639
PHP Stack trace:
PHP 1. {main}() /usr/share/php/peclcmd.php:0
PHP 2. require_once() /usr/share/php/peclcmd.php:31
PHP 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
PHP 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
PHP 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
PHP 6. PEAR_Downloader_Package->download() /usr/share/php/PEAR/Downloader.php:473
PHP 7. PEAR_Downloader_Package->_fromUrl() /usr/share/php/PEAR/Downloader/Package.php:262
PHP 8. PEAR_PackageFile->fromAnyFile() /usr/share/php/PEAR/Downloader/Package.php:1599
PHP 9. PEAR_PackageFile->fromTgzFile() /usr/share/php/PEAR/PackageFile.php:473 Fatal error: Cannot use result of built-in function in write context in /usr/share/php/Archive/Tar.php on line 639 Call Stack:
0.0001 406048 1. {main}() /usr/share/php/peclcmd.php:0
0.0008 482248 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.1163 2084928 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.1163 2084928 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.6323 3353264 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
14.7371 4418416 6. PEAR_Downloader_Package->download() /usr/share/php/PEAR/Downloader.php:473
14.7382 4421888 7. PEAR_Downloader_Package->_fromUrl() /usr/share/php/PEAR/Downloader/Package.php:262
17.2164 4423688 8. PEAR_PackageFile->fromAnyFile() /usr/share/php/PEAR/Downloader/Package.php:1599
17.2165 4423728 9. PEAR_PackageFile->fromTgzFile() /usr/share/php/PEAR/PackageFile.php:473
pear list
vagrant@ubuntu-xenial:/etc/php$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.4.3 stable
Console_Getopt 1.4.1 stable
PEAR 1.10.1 stable
PEAR_Manpages 1.10.0 stable
Structures_Graph 1.1.1 stable
XML_Util 1.3.0 stable

更新 Archive_Tar

sudo pear upgrade Archive_Tar

Archive_Tar upgrade to Archive_Tar 1.4.3 version,問題就解決了

sudo pecl install mcrypt-1.0.1

參考

  1. Remove unneeded by-reference on built-in fuction
  2. PHP 7.2 compatibility: Upgrade to Archive_Tar 1.4.3 needed
  3. Issue in installing php7.2-mcrypt
  4. How to install mcrypt in php7.2 Main
  5. PEAR 软件包的安装
  6. php-pear broken on php 7.2

最新文章

  1. Ubuntu 搭建SSH服务器
  2. XML Schema and XMLspy notes
  3. Android中webview和js之间的交互(转)
  4. NSBundle常用方法及解释
  5. POJ3207Ikki's Story IV - Panda's Trick(模板题)
  6. Codeforces 720A. Closing ceremony
  7. Charles 3.11.5 绿色特别版
  8. Unity 5 引擎收费版和免费版的区别(转)
  9. 获取某月第一天,最后一天的sql server脚本 【转】http://blog.csdn.net/chaoowang/article/details/9167969
  10. Python的基础--对象 转
  11. [转]IIS7.5 添加expires头 提高性能
  12. Ubuntu 小技巧
  13. HttpCookie
  14. VC2010的破解方法(针对旗舰版)
  15. *++p和*p++的区别
  16. Java-调用抽象类中指定参数的构造方法
  17. weblogic11g 配置数据源
  18. 《如莲春天》Java开发框架
  19. sqlmap用户手册 [详细]
  20. hdu_1286找新朋友(欧拉定理)

热门文章

  1. 深入Dagger:JavaPoet的使用
  2. shell script 学习
  3. CSIC_716_20191225【HTML基础入门】
  4. leetcode-13双周赛-1257-最小公共区域
  5. Unity Download
  6. 【LeetCode 16】最接近的三数之和
  7.  导致页面顶部空白一行
  8. CSS适配,方案
  9. 数据结构学习笔记——顺序数组2
  10. java8的正确使用姿势