GithubHelp home page GithubHelp logo

skyapm / skyapm-php-sdk Goto Github PK

View Code? Open in Web Editor NEW
421.0 35.0 127.0 4.78 MB

Replaced by https://github.com/apache/skywalking-php

Home Page: https://skywalking.apache.org/

License: Apache License 2.0

PHP 9.32% M4 0.78% JavaScript 0.14% C 44.04% Shell 1.34% C++ 33.01% Python 4.01% Dockerfile 0.69% Rust 6.68%
php-extension php7 skywalking observability apm service-mesh predis grpc yar pecl-skywalking

skyapm-php-sdk's Introduction

This agent is being replaced by upstream SkyWalking PHP Agent

SkyAPM PHP

CI release PHP contributors platform license issues

Sky Walking logo

SkyAPM PHP is the PHP instrumentation agent, which is compatible with Apache SkyWalking backend and others compatible agents/SDKs

Support List

  1. cURL (PHP cURL)
  2. PDO (PHP PDO)
  3. Mysqli (PHP Mysqli)
  4. Redis Extension (Redis Extension)
  5. Predis Client (Predis)
  6. Memcache Extension (Memcache Extension)
  7. Yar Client (version > 2.0.4) (Yar)
  8. Yar Server (Yar)
  9. GRPC Client (GRPC)
  10. RabbitMQ

Support List (Swoole ecosystem)

  1. Swoole (Swoole)
  2. Hyperf (Hyperf)
  3. Swoft (Swoft)
  4. Tars-php (Tars-php)
  5. LaravelS (LaravelS)

Documentation

Docker image (Quick start)

Go to Docker hub -> https://hub.docker.com/u/skyapm

$ docker run --restart always -d -e SW_OAP_ADDRESS=oap:11800 skyapm/skywalking-php

Downloads

Please head to the releases page to download a release of SkyAPM PHP.

Stargazers over time

Stargazers over time

License

Apache 2.0

skyapm-php-sdk's People

Contributors

alpherjang avatar anynone avatar cyhii avatar dickens7 avatar heyanlong avatar huohuanhuan avatar iamif3000 avatar jmjoy avatar kezhenxu94 avatar kilingzhang avatar limfriend avatar ljf-6666 avatar ljx22222 avatar lpf32 avatar lvxiao1 avatar mikkeschiren avatar mryzys avatar qjgszzx avatar remicollet avatar rovast avatar silverkorn avatar songzhian avatar sp-66666 avatar tinyu0 avatar wu-sheng avatar xinfeingxia85 avatar xonze avatar xudianyang avatar xybingbing avatar yaowenqiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skyapm-php-sdk's Issues

出现502报错

php.ini加处skywalking扩展;curl请求外部资源出现502。

配置如下:

[skywalking]
;扩展so
extension=skywalking.so
;是否启用:0 关闭;1 启用 (默认值为0)
skywalking.enable=1
;skywalking的版本:5或者6(默认值为6)
skywalking.version=6
;app_code代码,不要含特殊字符,请使用数字、字母、下换线。(默认为:hello_skywalking)
skywalking.app_code=hello_skywalking
;sock文件路径(默认值为/tmp/sky_agent.sock)
skywalking.sock_path=/tmp/sky_agent.sock

php error.log

[24-Jul-2019 20:56:18] WARNING: [pool www] child 29451 exited on signal 11 (SIGSEGV) after 25.828844 seconds from start
[24-Jul-2019 20:56:18] NOTICE: [pool www] child 29558 started

php 代码:

php-fpm 无法重启

Warning: PHP Startup: Unable to load dynamic library '/alidata/server/php-7.1.19/lib/php/extensions/no-debug-non-zts-20160303/skywalking.so' - /alidata/server/php-7.1.19/lib/php/extensions/no-debug-non-zts-20160303/skywalking.so: undefined symbol: _ZTIN6google8protobuf7MessageE in Unknown on line 0

Provide contributor/company info or contacts in your readme.

IMHO, for an open source project, the community environment is the most important thing. So please make sure, every people who are interesting in your repository, know who you are, and how to contact you.

So at least provide your information for contacting you. At least, if you want to make things easier, you can use Skywalking's gitter room, google maillist, QQ group, etc. Bottom line is, people can talk with you, and provide you their feedback. Then you know how to improve your project. That is how does an open source project work out.

编译正常,启动报错

环境:
centos 7.2,php 7.2.16,protocol 3.6.1.3,grpc:1.19,gcc:4.8.5,SDK:2.0.2
image
请求何兄以及各位帮看下

Make the English documents as default

As you known, OpenSkywalking and its team work in the global env. So many out-China guys pay attentions to our projects and related ecosystem, like your php-sdk.

  • Rule: English document in README.md, and Chinese in README_ZH.md.

You can see that in Skywalking repository. And when you set a mirror in OSChina, like we did: https://gitee.com/OpenSkywalking/sky-walking , I will find out they follow this rule too, they choose the *_ZH.md as default readme, since their users are Chinese, right.

php-fpm 无法正常启动

php-fpm: v7.2.7 zts

extension=skywalking.so
skywalking.enable=1
skywalking.version=6
skywalking.app_code=hello_skywalking
skywalking.sock_path=/tmp/sky_agent.sock

Jul 29 17:16:26 applicaton-proving systemd: Started The PHP FastCGI Process Manager.
Jul 29 17:16:26 applicaton-proving systemd: Starting The PHP FastCGI Process Manager...
Jul 29 17:16:26 applicaton-proving kernel: php-fpm[32446]: segfault at 0 ip 00007fe15f910cca sp 00007ffcba47f3d0 error 4 in skywalking.so[7fe15f90c000+9000]
Jul 29 17:16:26 applicaton-proving systemd: php-fpm.service: main process exited, code=killed, status=11/SEGV
Jul 29 17:16:26 applicaton-proving systemd: Unit php-fpm.service entered failed state.
Jul 29 17:16:26 applicaton-proving systemd: php-fpm.service failed.

make问题

在老的版本里,编译可以通过,使用没问题。最新的版本,发现编译报错。
我使用时通过的版本号是:1cbabdc742ce43fdacb32759f4108754094139011cbabdc742ce43fdacb32759f410875409413901

编译报错的php版本:7.1.18
报错信息是:
/home/soft/SkyAPM-php-sdk/skywalking.c: 在函数‘sky_execute_internal’中: /home/soft/SkyAPM-php-sdk/skywalking.c:415:56: 错误:‘MYSQLND_CONN_DATA’没有名为‘host’的成员 char *host = mysql->mysql->data->host;

report_client 上报日志无响应

基础环境

  • Centos 7.6

  • SkyWalking: 6.1.0

  • ElasticSearsh: 6.3.2

  • PHP: 7.0.28

  • skywalking-php-sdk: 2.0.2

  • php.ini:
    image

  • php -m 无报错

  • 请求 php 时 agent 日志目录会生成日志

问题描述

  • SkyWalking Server 端接收不到 agent 搜集的数据信息
    image

  • report_client 客户端显示发送日志到 Server 并把日志清除
    image

  • SkyWalking Server 端启动正常;
  • 初始化 ElasticSearsh 时无异常,成功创建索引。

编译无报错,加载skywalking扩展后php-fpm无法启动

你好:
我的生产环境是php7.2+gcc 4.7.4
编译时候的环境是gcc6.x,编译出来的.so扩展添加到php.ini,报出segementation fault错误,php-fpm无法启动,没有其他错误信息了,请问是否要求php本身的编译环境也要相同于agent?

symbol lookup error happened

after install the skywalking,so in /php/ext/ directory,I run: php -m, the " symbol lookup error: /usr/local/whistle/php/ext/skywalking.so: undefined symbol: uuid_generate_random" happened.

I have tried my best to resolve this problem,but failed.
I need ur help,please.

编译报错问题

hecking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /opt/rh/devtoolset-4/root/usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /tmp/php
checking for PHP includes... -I/tmp/php/include/php -I/tmp/php/include/php/main -I/tmp/php/include/php/TSRM -I/tmp/php/include/php/Zend -I/tmp/php/include/php/ext -I/tmp/php/include/php/ext/date/lib
checking for PHP extension directory... /tmp/php/lib/php/extensions/no-debug-zts-20151012
checking for PHP installed headers prefix... /tmp/php/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 0.14.3 (ok)
checking for gawk... gawk
checking whether to enable skywalking support... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by cc... /opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld
checking if the linker (/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld) is GNU ld... yes
checking for /opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/rh/devtoolset-4/root/usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 1572864
checking command to parse /opt/rh/devtoolset-4/root/usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld -m elf_x86_64
checking if the linker (/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: executing default-1 commands
./src/protos/.proto: No such file or directory
./src/protos/
.proto: No such file or directory
config.status: executing default-2 commands
mv: cannot stat 'src/grpc/ApplicationRegisterService.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/Common.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/DiscoveryService.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/Downstream.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/JVMMetricsService.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/KeyWithIntegerValue.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/KeyWithStringValue.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/NetworkAddressRegisterService.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/TraceSegmentService.grpc.pb.cc': No such file or directory

get traceId and log it

I know I can get traceId and log it in Java. But with php sdk, how can I do this?
We put all logs in es and get all the call chain logs by searching traceId.
Thanks.

can not find some files

in configure, try to rename such files:
grpc/greeter_client.cc \
grpc/DiscoveryService.pb.cc \
grpc/DiscoveryService-grpc.pb.cc \
grpc/ApplicationRegisterService.pb.cc \
grpc/ApplicationRegisterService-grpc.pb.cc \
grpc/TraceSegmentService.pb.cc \
grpc/TraceSegmentService-grpc.pb.cc
,but in dir grpc, there is no such files.

加入report_client 进程后,nginx报错,有些接口返回正常,个别接口请求返回 502

能上传日志了,但是有个问题。nginx报错,有些接口返回正常,个别接口请求返回 502. 不是因为超时,nginx日志如下:
2019/07/20 11:36:23 [error] 7#7: *856 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /place/search HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"

杀掉report_client进程,接口请求都是正常的。
其中一个返回502的接口是请求elastic search,search索引。用的是官方的es-php sdk。
目前看,有问题的接口,都是涉及到请求第三方的服务。

json.exception.type_error.305

send /tmp/skywalking.1557797862-3966.log to skywalking service
send 4.3966.15577978600012 to skywalking service
terminate called after throwing an instance of 'nlohmann::detail::type_error'
what(): [json.exception.type_error.305] cannot use operator[] with a string argument with array
Aborted

What is the cause of FUTEX_WAIT_PRIVATE ETIMEDOUT (Connection timed out)?

OS

# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

php

# php -v
PHP 7.2.14 (cli) (built: Mar 12 2019 17:13:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies

# php -i | grep sky
/etc/php.d/skywalking.ini
skywalking
SkyWalking Agent => /tmp/sky_agent.sock
skywalking.app_code => MyProjectName => MyProjectName
skywalking.enable => On => On
skywalking.grpc => 127.0.0.1:11800 => 127.0.0.1:11800
skywalking.log_path => /tmp => /tmp
skywalking.version => 6 => 6

netstat

# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      14877/httpd
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      32957/java
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      9640/sshd
tcp        0      0 0.0.0.0:11800           0.0.0.0:*               LISTEN      32940/java
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      10340/master
tcp        0      0 0.0.0.0:12800           0.0.0.0:*               LISTEN      32940/java

apache-skywalking-apm-bin-6.2.0 is used by default
https://github.com/apache/skywalking/blob/v6.2.0/docs/en/setup/backend/backend-ui-setup.md

# ./apache-skywalking-apm-bin-6.2.0/bin/startup.sh
SkyWalking OAP started successfully!
SkyWalking Web Application started successfully!

netcat

# nc -v 127.0.0.1 11800
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 127.0.0.1:11800.

XHTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 0a

Ncat: Broken pipe.

sky_php_agent version3.1.0

# ./sky_php_agent_linux_x64-3.1.0 127.0.0.1:11800
hello skywalking

.....
.....(Nothing is displayed)

strace

# strace -p $(pgrep sky_php_agent)
strace: Process 15391 attached
restart_syscall(<... resuming interrupted futex ...>) = -1 ETIMEDOUT (Connection timed out)
futex(0xc44950, FUTEX_WAKE_PRIVATE, 1)  = 1
futex(0xc0001044c0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc485e0, FUTEX_WAIT_PRIVATE, 0, {39, 999999084}) = -1 ETIMEDOUT (Connection timed out)
futex(0xc44950, FUTEX_WAKE_PRIVATE, 1)  = 1
futex(0xc0001044c0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xc48660, FUTEX_WAIT_PRIVATE, 0, {39, 999998788}^Cstrace: Process 15391 detached
 <detached ...>

FUTEX_WAIT_PRIVATE ETIMEDOUT (Connection timed out) is displayed infinitely

I am in trouble because I do not know the reason
I hope you can help 🙇

skywalking-php-agent make 编译报错

root@ubuntu-30-29:/data/SkyAPM-php-sdk# make
/bin/bash /data/SkyAPM-php-sdk/libtool --mode=compile cc -Wall -Werror -std=c++11 -I. -I/data/SkyAPM-php-sdk -DPHP_ATOM_INC -I/data/SkyAPM-php-sdk/include -I/data/SkyAPM-php-sdk/main -I/data/SkyAPM-php-sdk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -I/data/SkyAPM-php-sdk/src/report/deps/boost -I/data/SkyAPM-php-sdk/src/grpc -I/data/SkyAPM-php-sdk/src -DHAVE_CONFIG_H -g -O2 -c /data/SkyAPM-php-sdk/skywalking.c -o skywalking.lo
libtool: compile: cc -Wall -Werror -std=c++11 -I. -I/data/SkyAPM-php-sdk -DPHP_ATOM_INC -I/data/SkyAPM-php-sdk/include -I/data/SkyAPM-php-sdk/main -I/data/SkyAPM-php-sdk -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -I/data/SkyAPM-php-sdk/src/report/deps/boost -I/data/SkyAPM-php-sdk/src/grpc -I/data/SkyAPM-php-sdk/src -DHAVE_CONFIG_H -g -O2 -c /data/SkyAPM-php-sdk/skywalking.c -fPIC -DPIC -o .libs/skywalking.o
cc1: error: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [-Werror]
cc1: all warnings being treated as errors
make: *** [skywalking.lo] Error 1

Doubts regarding installation of SkyAPM-php agent

I am new to skywalking and am trying to install the Skywalking php agent. i am following the given document in the SkyAPM-php-sdk. However after cloning the repository when i try to execute the command - " phpize && ./configure && make && make install " it give the following error :-

/home/indraneel/SkyAPM-php-sdk/src/greeter_client.cc:25:10: fatal error: grpc/register/Register.grpc.pb.h: No such file or directory
#include "grpc/register/Register.grpc.pb.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I installed gRPC as per the instructions given in the installation documents. I can't seem to find the Register.grpc.pb.h file anywhere. Please can someone help me get a clearer idea of what exactly this file is and where can i find it?

report_client make error

Some errors occurred during compiling the report_client.

report_client.cpp:26:28: fatal error: boost/format.hpp: No such file or directory
#include <boost/format.hpp>
^
compilation terminated.
make: *** [report_client] Error 1

关于php探针安装和使用

我按照install-agent.md文档进行了安装,但是不知道如何使用这个探针,在控制台只显示了一个hello。

Working together with java agent?

Say I have project A writing in PHP, and project B writing in JAVA, A call B via curl, both A AND B use skywalking, but in Topology they are not connected and in Traces they are not work together.

when GA-6.0 finish?

I found that some things of GA-6.0 were not completed.

  1. sw6 http head
  2. Register instance
  3. Tracesegment report

Is it usable?

json.exception.type_error.302

send /tmp/skywalking.1557798374-5642.log to skywalking service
send 4.5642.15577983730010 to skywalking service
terminate called after throwing an instance of 'nlohmann::detail::type_error'
what(): [json.exception.type_error.302] type must be number, but is array
Aborted

register fail

skywalking 6.1

skyAPM-php-sdk

git clone last version 20190520

php -i
skywalking Support => disabled (register fail)

/opt/SkyAPM-php-sdk/skywalking.c:46:23: fatal error: uuid/uuid.h: No such file or directory

tag: 2.0.1

g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/SkyAPM-php-sdk -DPHP_ATOM_INC -I/opt/SkyAPM-php-sdk/include -I/opt/SkyAPM-php-sdk/main -I/opt/SkyAPM-php-sdk -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/opt/SkyAPM-php-sdk/src/grpc -DHAVE_CONFIG_H -std=c++11 -Isrc/report/deps/boost -c /opt/SkyAPM-php-sdk/src/greeter_client.cc -fPIC -DPIC -o src/.libs/greeter_client.o
/opt/SkyAPM-php-sdk/src/greeter_client.cc:25:53: fatal error: grpc/ApplicationRegisterService.grpc.pb.h: No such file or directory
#include "grpc/ApplicationRegisterService.grpc.pb.h"
^
compilation terminated.
make: *** [src/greeter_client.lo] Error 1

docker 安装./configure 时,出现checking for libgrpc files in default path... not found

Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718

  • cd SkyAPM-php-sdk-master
  • phpize
  • ./configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr/local
    checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
    checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20170718
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.16 (ok)
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking whether to enable skywalking support... yes, shared
    checking for libgrpc support... yes, shared
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    configure: error: Please install libgrpc - See https://github.com/grpc/grpc

Set up CI

PHP project has more attention today. Please set up CI(Travis or CircleCI), and think about how to test the plugins.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.