chuan-yun / Molten

php probe for zipkin and opentracing
Apache License 2.0
793 stars 160 forks source link

编译不了,报错 #5

Closed Leon2012 closed 7 years ago

Leon2012 commented 7 years ago

环境: vagrant&ubuntu14.04 & php5.6.29

错误信息: In file included from /home/vagrant/Molten/molten_intercept.c:18:0: /usr/local/webserver/php5629/include/php/ext/mysqli/php_mysqli_structs.h:63:23: fatal error: my_global.h: No such file or directory

silkcutKs commented 7 years ago

php -i | grep configure 贴一下吧, 其中有mysqli扩展吗?

编译PHP时,./configure参数中务必要加入

--enable-mysqlnd --with-mysqli

yyork commented 7 years ago

@silkcutKs 环境 macOS 10.12.6 & php7.1.7

错误信息: In file included from /Users/york/Downloads/Molten/molten.c:24: In file included from ./php_molten.h:35: In file included from ./molten_chain.h:34: ./molten_log.h:31:10: fatal error: 'error.h' file not found

include

     ^

1 error generated. make: *** [molten.lo] Error 1

silkcutKs commented 7 years ago

@yyork 我来处理一下

添加mysqlnd的检查

example中启动添加docker的方式

silkcutKs commented 7 years ago

@Leon2012 没有mysqlnd 也可以build通过了。 @yyork macos 上build已经支持,可以尝试build了

yyork commented 7 years ago

@silkcutKs 谢谢,已build成功。