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 ...
随机推荐
- Python之在字符串中处理html和xml
需求:替换文本字符串中的 ‘<’ 或者 ‘>’ ,使用 html.escape() 函数 import html s="<div>你好<div>" ...
- Spring项目下js文件无法引用
问题:最近练习spring-mvc框架的时候,引用了jQuery,但是运行的时候,jQuery做的事情都没有响应,代码也没有任何报错,在网上找了一下,发现是由于spring配制的是/,所有的资源都被屏 ...
- VS2013+Opencv3.3配置教程
转载自: https://blog.csdn.net/u014797226/article/details/78283873?locationNum=5&fps=1 参考博文1: 操作环境: ...
- mysql添加外键语句
sql语句格式: · 添加外键约束:alter table 从表 add constraint 外键(形如:FK_从表_主表) foreign key (从表外键字段) references 主表(主 ...
- 关于prototype与constructor的几点理解
首先要明确一点,js中的prototype是每个函数创建时(并非执行时,而是函数存在于堆区后)自动创建一个默认对象,这一对象中可以动态的添加属性 在new对象后,可以通过“对象.属性名”的方式直接调用 ...
- codeforces1156D 0-1-Tree 换根dp
题目传送门 题意: 给定一棵n个点的边权为0或1的树,一条合法的路径(x,y)(x≠y)满足,从x走到y,一旦经过边权为1的边,就不能再经过边权为0的边,求有多少边满足条件? 思路: 首先,这道题也可 ...
- STL_Algorithm
#include <algorithm> #include <cstdio> using namespace std; /*虽然最后一个排列没有下一个排列,用next_perm ...
- 转帖 eclipse Web项目WebContent目录修改
最近在做Web 项目时,新建了一个WEB 项目,如webdemo,eclipse默认的build路径为build,WEB-INF存放于WebContent下面,今改了一个build路径和WebCont ...
- BZOJ 3328: PYXFIB 解题报告
BZOJ 3328: PYXFIB 题意 给定\(n,p,k(1\le n\le 10^{18},1\le k\le 20000,1\le p\le 10^9,p \ is \ prime,k|(p- ...
- NOIp2018集训test-10-23
上午考了一套sb题,但是没有人AK.李巨290虐场. 下午又考了一套sb题,李巨AK虐场.%%% T1 % 中国剩余定理好像做不了啊,我一直在想如何用CRT做,然后就GG了. 然而正解是bike当初说 ...