SkyAPM / SkyAPM-php-sdk

Replaced by https://github.com/apache/skywalking-php
https://skywalking.apache.org/
Apache License 2.0
421 stars 104 forks source link

Wrong gpr lib version or lib not found #391

Closed Alrodemoa closed 3 years ago

Alrodemoa commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

I trying to build Skywalking agent for PHP via PEAR, but i have instantly error. Pecl install skywalking Wrong gpr lib version or lib not found I rebuilt cmake and grpc for 3 time but it make no difference. изображение

Expected behavior A clear and concise description of what you expected to happen. Skywalking PHP agent installation Screenshots If applicable, add screenshots to help explain your problem.

PHP (please complete the following information):

SkyWalking (please complete the following information):

heyanlong commented 3 years ago

gRPC was not found in the installation directory

Alrodemoa commented 3 years ago

gRPC was not found in the installation directory

Why is not found?

Installing script detected GRPC and Protobuf files in usr/local. At this path GRPC is present and its files are also presentе. изображение Which file need to be searched? What is the grp lib?

heyanlong commented 3 years ago

Can you provide me the location of grpc.{so,h}?

heyanlong commented 3 years ago

gpr is a sub-library of grpc

Alrodemoa commented 3 years ago

Can you provide me the location of grpc.{so,h}?

/usr/local/include/grpc/grpc.h

Grpcs libs include into /usr/local/lib - what file name for grp lib?

heyanlong commented 3 years ago

Try grpc 1.31

Alrodemoa commented 3 years ago

Try grpc 1.31

I finally built it up. Need to add this line for cmake before compiling grpc -DBUILD_SHARED_LIBS=ON in my case. Thank you and close this task! Have a good day.

haanyip commented 2 years ago

Try grpc 1.31

I finally built it up. Need to add this line for cmake before compiling grpc -DBUILD_SHARED_LIBS=ON in my case. Thank you and close this task! Have a good day.

it works for me