2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

composer updateでエラー

Last updated at Posted at 2014-09-02

$ composer update をしようとしたところ下記エラーが発生.

Fatal error: include(): Cannot redeclare class composer\command\licensescommand in phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php on line 269

Stack OverFlowより.
https://github.com/composer/composer/issues/264
CLIバージョンのPHPでAPCを有効にする、apc.enable_cliがOnになっていると起こる現象らしい.

apcの設定を確認

$ php -i | grep apc.enable
apc.enable_cli => On => On

apcの設定ファイルを変更

$ vim /etc/php.d/apc.ini
apc.enabled=0

apache再起動

$ httpd -k graceful

無事composer updateできた.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?