OS上で無効なパッケージ名/パッケージファイル「pear.phpunit.de/PHPUnit」にPHPUnit
不明なチャンネルをインストールするとエラーが発生する。pear.phpunit.de
pear.phpunit.de/PHPUnit
Debian-4
http://phpunit.de/manual/3.7/en/installation.htmlに含まれる指示に従って指示に従いました。PHAR
方法と方法を試しましたPEAR
が、どちらも機能していません。
サーバーのセットアップは次のとおりです。
PEAR Version: 1.9.4
PHP Version: 5.4.4-14+deb7u3
Zend Engine Version: 2.4.0
Running on: Linux lsh1001 3.9.6-hw+ #6 SMP
PEAR
メソッドを使用してインストールしようとすると、次を実行します。
pear config-set auto_discover 1
そして私は受け取ります
config-set succeeded
ただし、実行すると
pear install pear.phpunit.de/PHPUnit
そして私は受け取ります:
Attempting to discover channel "pear.phpunit.de"...
downloading channel.xml ...
Starting to download channel.xml (804 bytes)
....done: 804 bytes
Auto-discovered channel "pear.phpunit.de", alias "pear.phpunit.de", adding to registry
unknown channel "pear.phpunit.de" in "pear.phpunit.de/PHPUnit"
invalid package name/package file "pear.phpunit.de/PHPUnit"
install failed
コマンド ライン プロンプトを使用するのは初めてなので、おかしなことをしている可能性があります。コード行の前にsudoを付けてみましたが、次のメッセージが表示されます。
-bash: sudo: command not found
私がこれをするとき。
PHPUnit
コマンド ライン インストールではなく、ブラウザ フロントエンドを使用して実行できるようにしたいと考えています。インストール方法も試しましたが、インストールされたファイルPHAR
を指す方法がわかりませんphpunit.phar
。コマンドラインからファイルを直接実行できますが、phpunit.phar
ファイル内でどのように参照すればよいでしょうphp.ini
か? ファイルをルート ディレクトリに残し、移動していません。