LoginSignup
3
3

【PHP】xDebug.soの読み込みエラーが発生した時の対処法

Last updated at Posted at 2021-11-19

AWSのCloud9でPHPファイルを実行したときにxDebug.soの読み込みエラーが発生した時の対処法。

PHPのバージョンとxdebugが揃っていない場合などに生じるエラー。

エラー文

Failed loading /xxxxx/xxxxx/xxxxx/xdebug.so:  
/xxxxx/xxxxx/xxxxx/xdebug.so: undefined symbol: gc_globals

xxxxxの部分はxDebug.soがあるパスです。

解決方法

xdebugを削除してインストールし直せばエラーが解決されます。

sudo pecl uninstall xdebug
sudo pecl install xdebug

参考

PHPのお役立ち情報

3
3
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
3
3