1

Ubuntu 12.10で解決できると思っていた問題がありますが、うまくいきません... PEARで何かをインストールしようとしたときに、12.04でも同じことがありました。

Warning: file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in Package.php on line 1518
PHP Warning:  file_exists(): Unable to find the wrapper "channel" - did you forget to enable it when you configured PHP? in /usr/share/php/PEAR/Downloader/Package.php on line 1518
PHP Stack trace:
PHP   1. {main}() /usr/share/php/pearcmd.php:0
PHP   2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305
PHP   3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271
PHP   4. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:661
PHP   5. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:279
PHP   6. PEAR_Downloader_Package->_fromFile() /usr/share/php/PEAR/Downloader/Package.php:160
PHP   7. file_exists() /usr/share/php/PEAR/Downloader/Package.php:1518

この例では、PHPUnit をインストールしようとしましたが、どのパッケージでも同じメッセージです。

私はこれについて多くのことをグーグルで調べ、多くの解決策を試しました:

  • apt-get remove でアンインストールします
  • apt-get purge でパージします
  • 残りのファイルを手動で削除します
  • インストールしてからアップグレードする

これを修正する方法について誰か考えがありますか?

ありがとう!

編集 :

いつも同じです。質問を投稿すると、答えが表示されます。

それを行ったトリックへのリンクは次のとおりです。https://stackoverflow.com/a/6596669/2061163

この問題は、システムに 2 つのバージョンの PEAR がインストールされていたために発生しました。理由はわかりません...

4

0 に答える 0