码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 16.04 pecl 不能安裝 mcrypt

时间:2019-08-11 23:25:28      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:channel   starting   web   erro   phar   down   iss   htm   nload   

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

ubuntu 16.04 pecl 不能安裝 mcrypt

标签:channel   starting   web   erro   phar   down   iss   htm   nload   

原文地址:https://www.cnblogs.com/fsong/p/11337058.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!