简体   繁体   English

在x86_64 GNU / Linux上升级PEAR

[英]Upgrading PEAR on x86_64 GNU/Linux

When I run sudo pear upgrade pear , it ends with the following error: 当我运行sudo pear upgrade pear ,它以下列错误结束:

ERROR: unable to unpack /tmp/tmpsozA4Q/Structures_Graph-1.0.4.tgz

Has anyone run into something like this before and do you have any suggestions on how to resolve this issue? 有没有人遇到过这样的事情,你对如何解决这个问题有任何建议吗? It's been keeping me up all night. 它让我彻夜难眠。

Usually this error arises due to a very outdated pear version that can't even talk to the pear server anymore and downloads a HTML page instead of the real archive. 通常这个错误是由于一个非常过时的梨版本,甚至不能再与梨服务器通信并下载HTML页面而不是真正的存档。

To fix this you need to update pear by hand. 要解决此问题,您需要手动更新梨。

wget http://pear.php.net/go-pear.phar 
php go-pear.phar

And follow the "system install" instructions. 并按照“系统安装”说明进行操作。


Apart from that 除此之外

unable to unpack 

could mean that you don't have the ability to extract gzip archives or that the /tmp/ disk is full or something related. 可能意味着您无法提取gzip档案或/tmp/ disk已满或与之相关。 It's not all that likely but in those cases: 这不是那么可能,但在那些情况下:

pear install -Z pear 

will download the .tar and not the .tgz 将下载.tar而不是.tgz


声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为PHP PDO-Linux x86_64编译Oracle Instant Client库? - How to compile the Oracle Instant Client Libraries for PHP PDO - Linux x86_64? mysql 不重用连接 Ver 14.14 Distrib 5.7.29, for Linux (x86_64) - mysql not reusing a connection Ver 14.14 Distrib 5.7.29, for Linux (x86_64) 使用Zend启动x86_64 Amazon EC2实例? - Launching a x86_64 Amazon EC2 instance with Zend? Mac OS X PHP 5.4.29编译错误“体系结构x86_64的未定义符号” - Mac OS X PHP 5.4.29 compile error “Undefined symbols for architecture x86_64” 在哪里可以找到ImageMagick 6.9.0.0 x86_64的“ imagick.so”? - where can I find “imagick.so” for for ImageMagick 6.9.0.0 x86_64? PHP 编译失败,因为架构 x86_64、macOS Sierra 上的 libiconv 的符号未定义 - PHP compile fails with undefined symbols for architecture x86_64, libiconv on macOS Sierra Centos x86_64 PHP 5.2.14 SQLITE丢失了吗? (WEBTATIC回购) - Centos x86_64 PHP 5.2.14 SQLITE missing? (WEBTATIC repo) CentOS 6.4 X86_64使用过多的RAM和SWAP - CentOS 6.4 X86_64 Uses too much RAM and SWAP 在Mac OS X / MAMP上升级PEAR - Upgrading PEAR on Mac OS X / MAMP Apache M1 芯片上的模块错误 - 文件,但架构不兼容有“arm64”,需要 >“x86_64” - Apache module error on M1 chip - file, but is an incompatible architecture have 'arm64', need > 'x86_64'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM