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.

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

报告相同问题?

悬赏问题

  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?