- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
当我运行时:
peardev install phpunit/PHPUnit
我得到以下信息:
No releases available for package "pear.phpunit.de/PHPUnit"
install failed
我运行了以下命令:
pear channel-discover pear.phpunit.de
Channel "pear.phpunit.de" is already initialized
和
pear install --alldeps phpunit/PHPUnit
No releases available for package "pear.phpunit.de/PHPUnit"
install failed
和
pear remote-list -c phpunit
CHANNEL PHPUNIT AVAILABLE PACKAGES:
===================================
PACKAGE VERSION
DbUnit 1.0.2
File_Iterator 1.2.6
Object_Freezer 1.0.0
PHPUnit 3.5.14
PHPUnit_MockObject 1.0.9
PHPUnit_Selenium 1.0.3
PHP_CodeBrowser 1.0.0
PHP_CodeCoverage 1.0.4
PHP_Timer 1.0.0
PHP_TokenStream 1.0.1
Text_Template 1.1.0
bytekit 1.1.1
phpUnderControl 0.5.0
phpcpd 1.3.2
phpdcd 0.9.2
phploc 1.6.1
ppw 1.0.4
test_helpers 1.1.0
和
pear upgrade pear
No releases available for package "pear.php.net/pear"
upgrade failed
请帮帮我,我的头发在这里撕裂了。
已更新
C:\Program Files\PHP>pear channel-discover pear.phpunit.de
Channel "pear.phpunit.de" is already initialized
C:\Program Files\PHP>pear channel-discover components.ez.no
Channel "components.ez.no" is already initialized
C:\Program Files\PHP>pear channel-discover pear.symfony-project.com
Channel "pear.symfony-project.com" is already initialized
C:\Program Files\PHP>pear install phpunit/PHPUnit
No releases available for package "pear.phpunit.de/PHPUnit"
install failed
更新 2
C:\Program Files\PHP>pear update-channels
Updating channel "components.ez.no"
Channel "components.ez.no" is up to date
Updating channel "doc.php.net"
Channel "doc.php.net" is up to date
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date
Updating channel "pear.phpunit.de"
Channel "pear.phpunit.de" is up to date
Updating channel "pear.symfony-project.com"
Channel "pear.symfony-project.com" is up to date
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date
更新 3
跑了
C:\Program Files\PHP>pear clear-cache
reading directory C:\Users\stephen\AppData\Local\Temp\pear\cache
136 cache entries cleared
C:\Program Files\PHP>pear install -a -f phpunit/PHPUnit
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2
.0.5)
downloading PHPUnit-3.5.14.tgz ...
Starting to download PHPUnit-3.5.14.tgz (118,697 bytes)
..........................done: 118,697 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHPUnit-3.
5.14.tgz" Unable to create directory 'C:/Program/tmpF4D2.tmp'
Unable to create path for C:/Program/tmpF4D2.tmp/package.xml
Download of "phpunit/PHPUnit" succeeded, but it is not a valid package archive
Error: cannot download "phpunit/PHPUnit"
downloading DbUnit-1.0.2.tgz ...
Starting to download DbUnit-1.0.2.tgz (39,231 bytes)
...done: 39,231 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\DbUnit-1.0
.2.tgz" Unable to create directory 'C:/Program/tmpF64A.tmp'
Unable to create path for C:/Program/tmpF64A.tmp/package.xml
Download of "phpunit/DbUnit" succeeded, but it is not a valid package archive
Error: cannot download "phpunit/DbUnit"
downloading File_Iterator-1.2.6.tgz ...
Starting to download File_Iterator-1.2.6.tgz (3,439 bytes)
...done: 3,439 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\File_Itera
tor-1.2.6.tgz" Unable to create directory 'C:/Program/tmpF6E7.tmp'
Unable to create path for C:/Program/tmpF6E7.tmp/package.xml
Download of "phpunit/File_Iterator" succeeded, but it is not a valid package arc
hive
Error: cannot download "phpunit/File_Iterator"
downloading PHP_CodeCoverage-1.0.4.tgz ...
Starting to download PHP_CodeCoverage-1.0.4.tgz (115,029 bytes)
...done: 115,029 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHP_CodeCo
verage-1.0.4.tgz" Unable to create directory 'C:/Program/tmpF83F.tmp'
Unable to create path for C:/Program/tmpF83F.tmp/package.xml
Download of "phpunit/PHP_CodeCoverage" succeeded, but it is not a valid package
archive
Error: cannot download "phpunit/PHP_CodeCoverage"
downloading PHPUnit_MockObject-1.0.9.tgz ...
Starting to download PHPUnit_MockObject-1.0.9.tgz (18,414 bytes)
...done: 18,414 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHPUnit_Mo
ckObject-1.0.9.tgz" Unable to create directory 'C:/Program/tmpF939.tmp'
Unable to create path for C:/Program/tmpF939.tmp/package.xml
Download of "phpunit/PHPUnit_MockObject" succeeded, but it is not a valid packag
e archive
Error: cannot download "phpunit/PHPUnit_MockObject"
downloading PHPUnit_Selenium-1.0.3.tgz ...
Starting to download PHPUnit_Selenium-1.0.3.tgz (16,587 bytes)
...done: 16,587 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHPUnit_Se
lenium-1.0.3.tgz" Unable to create directory 'C:/Program/tmpF9F6.tmp'
Unable to create path for C:/Program/tmpF9F6.tmp/package.xml
Download of "phpunit/PHPUnit_Selenium" succeeded, but it is not a valid package
archive
Error: cannot download "phpunit/PHPUnit_Selenium"
downloading YAML-1.0.5.tgz ...
Starting to download YAML-1.0.5.tgz (9,966 bytes)
...done: 9,966 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\YAML-1.0.5
.tgz" Unable to create directory 'C:/Program/tmpFA83.tmp'
Unable to create path for C:/Program/tmpFA83.tmp/package.xml
Download of "symfony/YAML" succeeded, but it is not a valid package archive
Error: cannot download "symfony/YAML"
downloading PHP_TokenStream-1.0.1.tgz ...
Starting to download PHP_TokenStream-1.0.1.tgz (7,250 bytes)
...done: 7,250 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHP_TokenS
tream-1.0.1.tgz" Unable to create directory 'C:/Program/tmpFB10.tmp'
Unable to create path for C:/Program/tmpFB10.tmp/package.xml
Download of "phpunit/PHP_TokenStream" succeeded, but it is not a valid package a
rchive
Error: cannot download "phpunit/PHP_TokenStream"
downloading ConsoleTools-1.6.1.tgz ...
Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes)
...done: 869,994 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\ConsoleToo
ls-1.6.1.tgz" Unable to create directory 'C:/Program/tmp9D.tmp'
Unable to create path for C:/Program/tmp9D.tmp/package.xml
Download of "ezc/ConsoleTools" succeeded, but it is not a valid package archive
Error: cannot download "ezc/ConsoleTools"
downloading Base-1.8.tgz ...
Starting to download Base-1.8.tgz (236,357 bytes)
...done: 236,357 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\Base-1.8.t
gz" Unable to create directory 'C:/Program/tmp36C.tmp'
Unable to create path for C:/Program/tmp36C.tmp/package.xml
Download of "ezc/Base" succeeded, but it is not a valid package archive
Error: cannot download "ezc/Base"
Download failed
install failed
更新 4
在 c:\PHP 安装 PHP
运行上述步骤,我现在得到:
C:\PHP>peardev install phpunit/PHPUnit
phpunit/PHPUnit requires PEAR Installer (version >= 1.9.2), installed version is
1.9.0
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires PEAR Installer (version >= 1.9.2), installed version is
1.9.0
phpunit/File_Iterator requires PEAR Installer (version >= 1.9.2), installed vers
ion is 1.9.0
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.1), installed v
ersion is 1.9.0
phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version >= 1.
2.2)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2
.0.5)
phpunit/PHPUnit_MockObject requires PEAR Installer (version >= 1.9.2), installed
version is 1.9.0
phpunit/PHPUnit_Selenium requires PEAR Installer (version >= 1.9.2), installed v
ersion is 1.9.0
phpunit/PHP_TokenStream requires PEAR Installer (version >= 1.9.1), installed ve
rsion is 1.9.0
No valid packages found
install failed
C:\PHP>pear upgrade pear
pear/pear is already installed and is the same as the released version 1.9.3
upgrade failed
更新 5
C:\PHP>pear upgrade pear
pear/pear is already installed and is the same as the released version 1.9.3
upgrade failed
C:\PHP>pear -V
PEAR Version: 1.9.0
PHP Version: 5.2.17
Zend Engine Version: 2.2.0
pear升级pear认为我是1.9.3但是pear说是1.9.0版本
最佳答案
我是一个新手,但希望对您有所帮助。
我刚刚成功安装了 PHPUnit。
我的环境。是Wamp2.1。
我不知道它到底是如何工作的,但它对我有用,所以试试这个。
pear clear-cache
然后,
pear install -a -f phpunit/PHPUnit
在失败消息的某处,我看到了一些关于缓存的信息,所以我使用了 clear-cache
。
我猜它在安装过程中做了一些技巧。
祝你好运!
关于php - Windows 通过 PEAR 安装 PHPUnit - 通过 PEAR 安装 PHPUnit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6272264/
如下图所示,我已经安装了 Pear,并且有一个 PhpUnit 文件夹,但是当我运行这段代码时(来自 Yii 的一本书), % phpunit functional/SiteTest.php
在 Windows 上,当我运行时 pear config-set auto_discover 1 出现以下错误 PEAR_Config::writeConfigFile fopen('C:\Wind
我阅读了其他 PHPUnit 安装问题,但没有任何成功。我的 PEAR 安装发生了什么? $ sudo pear update-channels Updating channel "component
我阅读了其他 PHPUnit 安装问题,但没有取得任何成功。我的 PEAR 安装发生了什么? $ sudo pear update-channels Updating channel "compone
我正在尝试在命令行上安装 PEAR,但没有任何反应。这是我尝试过的: wget http://pear.php.net/go-pear.phar php go-pear.phar 还尝试在 suhos
我正在尝试在命令行上安装 PEAR,但没有任何反应。这是我尝试过的: wget http://pear.php.net/go-pear.phar php go-pear.phar 还尝试在 suhos
我刚刚在 Windows 7 上新安装了 WAMP,我正在尝试让 PEAR 工作。事情从一开始就不对劲。当我尝试执行 go-pear.bat 文件时,它显示了这个。 phar "C:\wamp\bin
我正在将一个站点从 pear DB 更新到 MDB2,我已经完成了相当多的工作,但我在查询时遇到了困难,我不确定他们在这里试图实现什么。 谁能解释一下。 在这里 $bookRes =
我正在尝试将 PEAR 包安装到我最近在 Windows 7 64 位上安装的 XAMPP PHP (PHP 5.3.1)。 安装新包失败,因为 PEAR 尝试访问 c:\windows\pear.i
我不确定如何根据 PEAR 网站上的说明更改我的 php.ini 文件 它说“在任何情况下,PEAR 的 php_dir 都应该在包含路径中。如果没有,请将它添加到系统的 php.ini 中。” 在我
我曾尝试使用 PEAR 连接到 pear.phpunit.de 和其他三个类似的连接,但由于连接超时而无法连接,在 PEAR 中更新连接后,没有任何进展。 另外,我尝试通过更改 phpunit.php
我从源代码安装了 php7.2.2,并开始通过 pecl install sqlsrv 获取 mssql 扩展。它响应 pecl search sqlsrv,但通知我运行 pear channel-u
我在 Windows7 上安装了 XAMPP。更新 pear.php.net channel 后: pear channel-update pear.php.net 并尝试安装新包,例如 pecl i
当我运行时: peardev install phpunit/PHPUnit 我得到以下信息: No releases available for package "pear.phpunit.de/P
几乎所有免费网络托管服务器, 你不能使用PDO + MySQL。 他们缺少 PDO 驱动程序。 所以我正在考虑选择 pear MDB2, 或 DB_DataObject。 你向我推荐哪一个? 给我你的
如题,不知道Ruby和Rails有没有这样的辅助方法? 我知道 Ruby 的 join 方法,但它没有考虑“and”。 最佳答案 您正在寻找来自ActiveSupport 的to_sentence:h
在 pear.phpunit.de/PHPUnit 中安装 PHPUnit 未知 channel pear.phpunit.de 时出错 无效的包名称/包文件 "Debian-4 操作系统上的 pea
尝试安装时 PEAR通过运行 go-pear.php (来自 cPanel GoDaddy 托管帐户的根目录),我收到以下错误: Starting installation ... Loading z
之前已经解决了这个问题,我尝试提供所提供的解决方案,并认为我做错了什么。我正在尝试使用Mountaion Lion在Mac上配置PHP Codesniffer。我认为这并不重要,但是我正在使用XAMM
当我试图通过 pear 下载一个包时,它给了我这个错误(它不仅适用于 phpunit): No releases available for package "pear.phpunit.de/phpu
我是一名优秀的程序员,十分优秀!