首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何安装Text_Highlighter PEAR软件包?

如何安装Text_Highlighter PEAR软件包?
EN

Server Fault用户
提问于 2011-12-15 21:46:05
回答 2查看 635关注 0票数 1

我尝试过很多可能的解决方案,但没有人帮上忙:

代码语言:javascript
运行
复制
pear install Text_Highlighter
Failed to download pear/Text_Highlighter within preferred state "stable", latest release is version 0.7.2, stability "beta", use "channel://pear.php.net/Text_Highlighter-0.7.2" to install


pear -d preferred_state=beta install -f channel://pear.php.net/Text_Highlighter-0.7.2
downloading Text_Highlighter-0.7.2.tgz ...
Starting to download Text_Highlighter-0.7.2.tgz (139,104 bytes)
..............................done: 139,104 bytes
ERROR: No releases in package.xml matched the existing operating system, extensions installed, or architecture, cannot install

等。而0.7.1使用最新的命令完美地安装

有什么想法吗?

UPD

这就是php pyrus.phar install pear/Text_Highlighter-0.7.2给我的东西:

代码语言:javascript
运行
复制
Downloading pear.php.net/Text_Highlighter

Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/PEAR=======================================================================>] 99% (134/135 kb)
Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/Archive_Tar================================================================>] 99% (288/289 kb)
Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/Structures_Graph=====================================================>      ] 93% (16/17 kb)
Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/XML_Util================================================================>   ] 96% (28/29 kb)
Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/XML_Parser===========================================================>      ] 93% (16/17 kb)
Connected...
Mime-type: application/octet-stream

Downloading pear.php.net/Console_Getopt======================================================>       ] 92% (14/15 kb)
Connected...
Mime-type: application/octet-stream

PHP Warning:  rmdir(/usr/.old-bin/X11): Not a directory in phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/Filesystem.php on line 66
PHP Stack trace:
PHP   1. {main}() /root/pyrus.phar:0
PHP   2. PEAR2\Pyrus\ScriptFrontend\Commands->run() /root/pyrus.phar:52
PHP   3. PEAR2\Pyrus\ScriptFrontend\Commands->install() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/ScriptFrontend/Commands.php:284
PHP   4. PEAR2\Pyrus\Installer::commit() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/ScriptFrontend/Commands.php:491
PHP   5. PEAR2\Pyrus\AtomicFileTransaction::removeBackups() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/Installer.php:349
PHP   6. PEAR2\Pyrus\AtomicFileTransaction\Manager->finish() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/AtomicFileTransaction.php:96
PHP   7. PEAR2\Pyrus\AtomicFileTransaction\Transaction\TwoStage->finish() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/AtomicFileTransaction/Manager.php:196
PHP   8. PEAR2\Pyrus\Filesystem::rmrf() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/AtomicFileTransaction/Transaction/TwoStage.php:107
PHP   9. rmdir() phar:///root/pyrus.phar/PEAR2_Pyrus-2.0.0a3/php/PEAR2/Pyrus/Filesystem.php:66
PEAR2\Pyrus\AtomicFileTransaction\MultiException: Warning: no all backup directories have been removed
 PEAR2\Pyrus\IOException: Unable to fully remove /usr/.old-bin
EN

回答 2

Server Fault用户

回答已采纳

发布于 2012-01-03 21:33:14

这是一个包裹本身的错误。填充和固定在http://pear.php.net/bugs/bug.php?id=19139

票数 0
EN

Server Fault用户

发布于 2012-01-03 21:31:09

现在,Text_Highlighter包依赖于PEAR,这意味着它将引入许多其他包。若要将该包安装到自包含的存储库中,可以使用:

代码语言:javascript
运行
复制
mkdir Text_Highlighter
cd Text_Highlighter
php pyrus.phar `pwd` set bin_dir `pwd`/bin
php pyrus.phar `pwd` install pear/Text_Highlighter-0.7.2

它将在Text_Highlighter目录中安装Text_ directory 0.7.2和所有依赖项。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/341385

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档