エントリタイトルが糞長ぇ!
タイトルの通り、symfony 1.0と最近のバージョン(あやふやw)で起きる、symfony pluginインストール時のエラーです。
CentOS 5.3 i386/PEAR 1.9.0/symfony 1.0.22-PREの環境で発生。
symfonyプラグインのインストールでエラーがでた場合 | symfonyで開発Blog
同様の現象がこちらでも起きているんですが、こちらとちょっと違って前衛的な対処法です。
安全性は上記エントリのがバツグンにあるんで、上記のがオススメです。
プラグインインストール時のエラーは上記エントリと同様です。 一部パスを隠してます。
PHP Warning: require_once(PEAR/Remote.php): failed to open stream: No such file or directory in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155
Warning: require_once(PEAR/Remote.php): failed to open stream: No such file or directory in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155
PHP Fatal error: require_once(): Failed opening required ‘PEAR/Remote.php’ (include_path=’/var/www/documentroot/lib:/var/www/documentroot/apps//lib:
:/usr/share/pear/symfony1.0/lib/vendor:.:/usr/share/pear:/usr/share/php’)
in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155
Fatal error: require_once(): Failed opening required ‘PEAR/Remote.php’ (include_path=’/var/www/documentroot/lib:/var/www/documentroot/
apps//lib::/usr/share/pear/symfony1.0/lib/vendor:.:/usr/share/pear:/usr/share/php’)
in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155
要は、Remote.phpが見つからない、と。
で、上記エントリではRemote.phpが無いと書かれてますが、実はあるんです。 たぶん同じものが、
PEAR/Command/Remote.php
ここにありまする。
DIFF取ったわけじゃないけどたぶん同じです。
んで、Remote.phpは
/usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php
から呼び出されようとしています。
なのでこのファイルの155行目付近にある
require_once ‘PEAR/Remote.php’;
という行を
require_once ‘PEAR/Command/Remote.php’;
と書き換えるだけでもいけます。
symfonyのコアファイルに手を入れるのはちょっとあれなので、
/path/to/PEAR/Remote.php というシンボリックリンクを貼ってもよかと思います。 これでも通りました。
symfonyが悪いというわけではなく、PEARが易々とファイル構造を変えるのがイカンですな。
でもって追従出来てないsymfonyもちょっといかんー。
- Newer: [ 物欲 ] A2DP対応Bluetoothアダプタとヘッドホン購入
- Older: [ FF11 ] 木の植木鉢での収穫
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://francisca.cc/2009/09/11/symfony-symfony-1-0-%e3%81%a8-%e6%96%b0%e3%81%97%e3%82%81%e3%81%aepear%e3%81%ae%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a7%e8%b5%b7%e3%81%8d%e3%82%8b%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0/trackback/
- Listed below are links to weblogs that reference
- [ symfony ] symfony 1.0 と 新しめのPEARの組み合わせで起きる、プラグインインストール時のエラー from 私事。 跡地