ubuntu 16.04 pecl 不能安裝 mcrypt
2024-09-08 13:57:12
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
參考
- Remove unneeded by-reference on built-in fuction
- PHP 7.2 compatibility: Upgrade to Archive_Tar 1.4.3 needed
- Issue in installing php7.2-mcrypt
- How to install mcrypt in php7.2 Main
- PEAR 软件包的安装
- php-pear broken on php 7.2
最新文章
- Ubuntu 搭建SSH服务器
- XML Schema and XMLspy notes
- Android中webview和js之间的交互(转)
- NSBundle常用方法及解释
- POJ3207Ikki's Story IV - Panda's Trick(模板题)
- Codeforces 720A. Closing ceremony
- Charles 3.11.5 绿色特别版
- Unity 5 引擎收费版和免费版的区别(转)
- 获取某月第一天,最后一天的sql server脚本 【转】http://blog.csdn.net/chaoowang/article/details/9167969
- Python的基础--对象 转
- [转]IIS7.5 添加expires头 提高性能
- Ubuntu 小技巧
- HttpCookie
- VC2010的破解方法(针对旗舰版)
- *++p和*p++的区别
- Java-调用抽象类中指定参数的构造方法
- weblogic11g 配置数据源
- 《如莲春天》Java开发框架
- sqlmap用户手册 [详细]
- hdu_1286找新朋友(欧拉定理)