Closed mfurlend closed 3 years ago
The GCC version?
I get the same problem php: 7.1 SkyAPM-php-sdk: 4.0 Instruction: https://github.com/SkyAPM/SkyAPM-php-sdk/blob/v4.0.0/docs/install.md System: Linux version 4.14.62-65.117.amzn1.x86_64 (mockbuild@gobi-build-60009) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) Problem:
What does ldd return?
What does ldd return?
根据以上截图大概是protobuf的版本问题,protobuf版本问题已经解决,如下图所示,但依然出现同样的问题。
我今早set -e 把部署脚本放进文件里,然后重新编译了一次4.1,这次最后进入SkyAPM-php-sdk-4.1.0进行make时失败了
make的错误是因为没成功安装protobuf
I resolved the problem finally. Process: The libproto* of Dynamic library was put into /usr/local/lib64 when did "Install Protobuf", but /usr/local/lib64 is not configued as the searching path of dynamic link library. Configued that,ldconfig, then make SkyAPM-php-sdk again
make的错误是因为没成功安装protobuf
对的,谢谢。 唉,没学过C++编译的窘境,普及了一下相关知识。
需要确认这两个环境变量运行和编译时是一样的。要不然可能加载不到动态库
LD_RUN_PATH
LD_LIBRARY_PATH
Describe the bug I was able to build skywalking and include it php.ini, but when php attempts to load it I get this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'skywalking' (tried: /opt/remi/php73/root/usr/lib64/php/modules/skywalking (/opt/remi/php73/root/usr/lib64/php/modules/skywalking: cannot open shared object file: No such file or directory), /opt/remi/php73/root/usr/lib64/php/modules/skywalking.so (/opt/remi/php73/root/usr/lib64/php/modules/skywalking.so: undefined symbol: _ZNSt20regex_token_iteratorIN9__gnu_cxx17__normal_iteratorIPKcSsEEcSt12regex_traitsIcEEneERKS7_)) in Unknown on line 0
To Reproduce (in a dockerfile, using a Centos 7 base):
**PHP 7.3