Bug(バグ) #3918
kaoru n さんが8年以上前に更新
h3. Overview (現象)
PHP 5.6 の環境にて opPlugin:install コマンドでプラグインをインストールした際に
<pre>
could 「could not extract the package.xml file from
</pre> from」
というエラーが発生し、インストールが中断します。
h4. PHP 5.6 の場合
PHP 5.6 の場合は、「could not extract the package.xml file from」というエラーが発生し、プラグインのインストールを行うことができません。
<pre>
% php -v
PHP 5.6.18 (cli) (built: Feb 10 2016 10:19:55)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
% ./symfony opPlugin:install opDiaryPlugin -r 1.5.1
>> sfPearFrontendPlugin Attempting to discover channel "plugins.openpne.jp"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (796 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 796 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.openpne.jp", alias
>> sfPearFrontendPlugin "plugins.openpne.jp", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel "pear.symfony-project.com"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (865 bytes)
>> sfPearFrontendPlugin ...done: 865 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", alias
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel
>> sfPearFrontendPlugin "plugins.symfony-project.org"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
>> sfPearFrontendPlugin ...done: 639 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.symfony-project.org", alias
>> sfPearFrontendPlugin "symfony-plugins", adding to registry
>> plugin installing plugin "opDiaryPlugin"
>> sfPearFrontendPlugin downloading opDiaryPlugin-1.5.1.tgz ...
>> sfPearFrontendPlugin Starting to download opDiaryPlugin-1.5.1.tgz (78,808 bytes)
>> sfPearFrontendPlugin ...done: 78,808 bytes
>> sfPearFrontendPlugin could not extract the package.xml file from
>> sfPearFrontendPlugin "/OpenPNE3/web/cache/.pear/opDiaryPlugin-1.5.1.tgz"
>> sfPearFrontendPlugin Download of "http://get.openpne.jp/opDiaryPlugin-1.5.1.tgz"
>> sfPearFrontendPlugin succeeded, but it is not a valid package archive
>> sfPearFrontendPlugin Invalid or missing remote package file
Plugin "opDiaryPlugin" installation failed:
% ./symfony opPlugin:install opCommunityTopicPlugin -r 1.0.5
>> plugin installing plugin "opCommunityTopicPlugin"
>> sfPearFrontendPlugin downloading opCommunityTopicPlugin-1.0.5.tgz ...
>> sfPearFrontendPlugin Starting to download opCommunityTopicPlugin-1.0.5.tgz (69,561
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 69,561 bytes
>> sfPearFrontendPlugin could not extract the package.xml file from
>> sfPearFrontendPlugin "/OpenPNE3/cache/.pear/opCommunityTopicPlugin-1.0.5.tgz"
>> sfPearFrontendPlugin Download of
>> sfPearFrontendPlugin "http://get.openpne.jp/opCommunityTopicPlugin-1.0.5.tgz"
>> sfPearFrontendPlugin succeeded, but it is not a valid package archive
>> sfPearFrontendPlugin Invalid or missing remote package file
Plugin "opCommunityTopicPlugin" installation failed:
</pre>
h4. PHP 5.4 の場合
PHP 5.4 の場合は、問題なくインストール成功します。
<pre>
% php -v
PHP 5.4.45 (cli) (built: Feb 10 2016 10:17:56)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
% ./symfony opPlugin:install opDiaryPlugin -r 1.5.1
>> sfPearFrontendPlugin Attempting to discover channel "plugins.openpne.jp"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (796 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 796 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.openpne.jp", alias
>> sfPearFrontendPlugin "plugins.openpne.jp", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel "pear.symfony-project.com"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (865 bytes)
>> sfPearFrontendPlugin ...done: 865 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", alias
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel
>> sfPearFrontendPlugin "plugins.symfony-project.org"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
>> sfPearFrontendPlugin ...done: 639 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.symfony-project.org", alias
>> sfPearFrontendPlugin "symfony-plugins", adding to registry
>> plugin installing plugin "opDiaryPlugin"
>> sfPearFrontendPlugin downloading opDiaryPlugin-1.5.1.tgz ...
>> sfPearFrontendPlugin Starting to download opDiaryPlugin-1.5.1.tgz (78,808 bytes)
>> sfPearFrontendPlugin ...done: 78,808 bytes
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opDiaryPlugin" dependency
>> sfPearFrontendPlugin "plugins.openpne.jp/openpne" has no releases
>> opPluginManager Installation successful for plugin "opDiaryPlugin"
>> opPluginManager Installing web data for plugin
% ./symfony opPlugin:install opCommunityTopicPlugin -r 1.0.5
>> plugin installing plugin "opCommunityTopicPlugin"
>> sfPearFrontendPlugin downloading opCommunityTopicPlugin-1.0.5.tgz ...
>> sfPearFrontendPlugin Starting to download opCommunityTopicPlugin-1.0.5.tgz (69,561
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 69,561 bytes
>> opPluginManager Installation successful for plugin "opCommunityTopicPlugin"
>> opPluginManager Installing web data for plugin
</pre>
h4. PHP 5.5 の場合は未調査
h3. Causes (原因)
未調査
h3. Way to fix (修正内容)
修正内容を記入
h3. エラーの回避方法
Archive_Tar をバージョンアップすることにより、エラーを回避できます。
※この方法が正しいかどうかは要検証です。
http://pear.php.net/package/Archive_Tar/download より最新版をダウンロードし、
lib/vendor/PEAR/Archive/Tar.php
を置き換えると、PHP 5.6 の場合であってもプラグインをインストールすることができました。
<pre>
% cp Archive_Tar-1.4.2/Archive/Tar.php OpenPNE3/lib/vendor/PEAR/Archive/Tar.php
% cd OpenPNE3/
% ./symfony opPlugin:install opDiaryPlugin -r 1.5.1
>> plugin installing plugin "opDiaryPlugin"
>> sfPearFrontendPlugin downloading opDiaryPlugin-1.5.1.tgz ...
>> sfPearFrontendPlugin Starting to download opDiaryPlugin-1.5.1.tgz (78,808 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 78,808 bytes
>> sfPearFrontendPlugin Package "plugins.openpne.jp/opDiaryPlugin" dependency
>> sfPearFrontendPlugin "plugins.openpne.jp/openpne" has no releases
>> opPluginManager Installation successful for plugin "opDiaryPlugin"
>> opPluginManager Installing web data for plugin
% ./symfony opPlugin:install opCommunityTopicPlugin -r 1.0.5
>> plugin installing plugin "opCommunityTopicPlugin"
>> sfPearFrontendPlugin downloading opCommunityTopicPlugin-1.0.5.tgz ...
>> sfPearFrontendPlugin Starting to download opCommunityTopicPlugin-1.0.5.tgz (69,561
>> sfPearFrontendPlugin bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 69,561 bytes
>> opPluginManager Installation successful for plugin "opCommunityTopicPlugin"
>> opPluginManager Installing web data for plugin
</pre>
戻る