ubuntu 16.04 pecl 不能安裝 mcrypt
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 16.04 pecl 不能安裝 mcrypt的更多相关文章
- Ubuntu 16.04.3 LTS u盘-安裝教程(填坑)
Ubuntu 16.04.3 LTS 下载地址: https://www.ubuntu.com/download/desktop 下载u盘后文件为iso,可以选择UltraISO制作U盘启动,也可以直 ...
- ROS_Kinetic_01 在ubuntu 16.04安装ROS Kinetic 2017.01更新
ROS_Kinetic系列学习(一),在ubuntu 16.04安装ROS Kinetic. Celebrating 9 Years of ROS! ubuntu16.04已经发布半年多了,ROS的K ...
- PHP7 学习笔记(一)Ubuntu 16.04 编译安装Nginx-1.10.3、 PHP7.0.9、Redis3.0 扩展、Phalcon3.1 扩展、Swoole1.9.8 扩展、ssh2扩展(全程编译安装)
==================== PHP 7.0 编译安装================== wget http://cn2.php.net/get/php-7.0.9.tar.bz2/fr ...
- Ubuntu 16.04 LAMP server 指南 - 配置 Apache2.4,PHP7,和MariaDB(而不是MySQL)
翻译自:https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 昨天在虚 ...
- Ubuntu 16.04 Steam
Ubuntu 16.04安装Steam,直接去Steam官网下载客户端安装包即可.
- Ubuntu 16.04安装搜狗输入法
转载: http://www.it610.com/article/5319575.htm 打开firefox浏览器,输入网址www.baidu.com,打开后搜索搜狗拼音 linux进入到搜狗拼音li ...
- Ubuntu 16.04 安装 VMware-Workstation-12
以前一直使用 Ubuntu + Virtaulbox ,最近测试了 VMware-Workstation-9,性能超过 Virtaulbox-4.2.x,下面是详细步骤: 1 首先准备一个Ubuntu ...
- ubuntu 16.04 小键盘数字键盘开机自动启动
ubuntu 16.04 小键盘数字键盘开机自动启动 最近安了ubuntu 16.04,用windows用久了,换一个也挺好玩的! 但ubuntu 16.04因为算是最新的吧,还是存在些令我们不适应的 ...
- Vmware虚拟机安装Ubuntu 16.04 LTS(长期支持)版本+VMware tools安装
今天用VMware虚拟机安装了Ubuntu 16.04,过程用点繁琐,顺便又安装了VMware tools,这样就可以全屏显示Ubuntu系统了,下面是具体的安装过程! 第一步:准备工作 1.下载Ub ...
随机推荐
- 关于solr的一些知识
简单了解 怎么理解Solr是个什么东西呢? 引用官网的介绍, Solr is the popular, blazing-fast, open source enterprise search plat ...
- 事务管理ACID
事务是由一组SQL语句组成的逻辑处理单元,事务具有以下4个属性,通常简称为事务的ACID属性. ACID是Atomic(原子性) Consistency(一致性) Isolation(隔离性) Dur ...
- 升级python后yum命令出错
执行yum命令报错: yum list Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel | 5.3 kB 00:00:00 extr ...
- centos7 实测 nagios 安装
Nagios是一套开源的监控系统,可监控你的系统和网络.Nagios最新版本是Nagios Core 4.3.4,Nagios plugins 2.2.1.目前支持RHEL 7.x/6.x/5.x, ...
- 面试之加分项vue(没看懂,。。。。)
对大部分人来说,掌握Vue.js基本的几个API后就已经能够正常地开发前端网站.但如果你想更加高效地使用Vue来开发,成为Vue.js大师,那下面我要传授的这五招你一定得认真学习一下了.在面试过程很多 ...
- pygame征途:(一)图片移动反弹
题目大意: 就是弄一张图片在背景画布上移动,然后碰到边界就图片翻转并且反向移动 基本思路: 需要pygame常用的一些常用的函数,然后基本就是在背景画布上blit一张图片,然后移动就是先全刷成背景画布 ...
- mac MAMP安装redis扩展
一般情况下目录大概是一样的,只是php的版本不同,所以选择好自己对应的php版本目录即可 git clone https://github.com/nicolasff/phpredis.git cd ...
- spark代码写入hdfs错误
报错: org.apache.hadoop.security.AccessControlException: Permission denied: user=hgm, access=WRITE 其实就 ...
- C++11下的关键字
STL类:stack,queue,deque,priority_queue,map,set,multiset,bitset,vector 函数类:min,max,swap,sqrt,log,rever ...
- JCF——Map
Hashtable LinkedHashMap Properties