dongtan1009 2017-06-05 09:09
浏览 411
已采纳

在CentOS7上安装Xdebug,我得到错误未定义的符号:compiler_globals

I define the xdebug.so path on php.ini.

but I can't see xdebug info in phpinfo() function.

and error comps up like below.

Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: compiler_globals

How can I resolve this issue?

Using php 7.1.4 version.

  • 写回答

1条回答 默认 最新

  • dqa35710 2017-06-23 14:26
    关注

    Make sure that Xdebug is compiled using right php-config.

    Manually download xdebug.tgz from https://xdebug.org/download.php and then follow the instructions on https://xdebug.org/wizard.php.

    Just make sure that:

    1. When you do the phpize step - you use the right phpize binary for your PHP installation. If it is a custom installation it will usually be something like /usr/local/php/bin/phpize
    2. Same goes for running the ./configure step. Provide the path to correct php-config binary like this: ./configure --with-php-config=/usr/local/php/bin/php-config

    Only then you can complie the extension and copy the xdebug.so file to extension directory. Also remember to make clean first if u compiled that directory at least once before.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型