You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "jameslee007 (via GitHub)" <gi...@apache.org> on 2023/02/23 15:11:04 UTC
[GitHub] [skywalking] jameslee007 opened a new issue, #10439: [Bug] make command stopped at Unable to find libclang in alpine
jameslee007 opened a new issue, #10439:
URL: https://github.com/apache/skywalking/issues/10439
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
OAP server (apache/skywalking)
### What happened
Hi Team,
I am trying to install the Skywalking php agent in an alpine image php:8.2.0-fpm-alpine. I have the doc and installed the requirements. but when i try to use the make command, i am getting below error.
` --- stderr
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at /usr/lib/libclang.so.15.0.7 could not be opened: Dynamic loading not supported"', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.63.0/./lib.rs:2338:31
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace`
Please do help me. Below is the out put of my clang package installed.
`78f26a393636:/var/www/html/skywalking-php# apk list -i | grep clang
clang15-libclang-15.0.7-r0 x86_64 {clang15} (Apache-2.0) [installed]
clang14-libclang-14.0.6-r1 x86_64 {clang14} (Apache-2.0)
clang15-doc-15.0.7-r0 x86_64 {clang15} (Apache-2.0)
py3-clang15-15.0.7-r0 x86_64 {clang15} (Apache-2.0)
clang15-libs-15.0.7-r0 x86_64 {clang15} (Apache-2.0) [installed]
clang15-dev-15.0.7-r0 x86_64 {clang15} (Apache-2.0) [installed]
clang15-static-15.0.7-r0 x86_64 {clang15} (Apache-2.0)
clang14-libs-14.0.6-r1 x86_64 {clang14} (Apache-2.0)
clang15-analyzer-15.0.7-r0 x86_64 {clang15} (Apache-2.0)
clang14-dev-14.0.6-r1 x86_64 {clang14} (Apache-2.0)
clang15-extra-tools-15.0.7-r0 x86_64 {clang15} (Apache-2.0) [installed]
clang15-bash-completion-15.0.7-r0 x86_64 {clang15} (Apache-2.0)
clang14-static-14.0.6-r1 x86_64 {clang14} (Apache-2.0)
clang15-15.0.7-r0 x86_64 {clang15} (Apache-2.0) [installed]
clang14-14.0.6-r1 x86_64 {clang14} (Apache-2.0)
78f26a393636:/var/www/html/skywalking-php# `
### What you expected to happen
The php agent is to install in my docker alpine container.
### How to reproduce
pecl install skywalking_agent
OR
git clone --recursive https://github.com/apache/skywalking-php.git
cd skywalking-php
phpize
./configure
make #### HERE I AM GETTING THE ERROR
make install
### Anything else
I have unistalled the old rust 1.64 and installed new rust 1.67 using `curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh` command. I upgraded the rust because when i try to install skywalking_phpagent it complains for using the older version of rust.
Just sharing a note on what i tried.
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jmjoy commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jmjoy (via GitHub)" <gi...@apache.org>.
jmjoy commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1459635950
I will update the document to mention about alpine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 closed issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 closed issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
URL: https://github.com/apache/skywalking/issues/10439
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1442803452
> Maybe enable `bindgen` static feature can solve the issue, I will submit a new PR to optionally enable it.
Thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1461474528
> > https://github.com/KyleMayes/clang-sys#environment-variables
>
> ~You can use `LIBCLANG_STATIC_PATH`.~
>
> The correct way is to add environment variable `RUSTFLAGS="-C target-feature=-crt-static"`, ref to https://zhuanlan.zhihu.com/p/138109387.
This Worked. Thanks a lot.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1447633651
Can anyone please help me on how to install skywalking_agent in alpine image?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1459686629
> I will update the document to mention about alpine.
Thank you @jmjoy
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1441956858
@jameslee007 You picked the wrong component. OAP is SkyWalking backend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jmjoy commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jmjoy (via GitHub)" <gi...@apache.org>.
jmjoy commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1447749395
> <https://github.com/KyleMayes/clang-sys#environment-variables>
You can use LIBCLANG_STATIC_PATH
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jmjoy commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jmjoy (via GitHub)" <gi...@apache.org>.
jmjoy commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1442666816
Maybe enable `bindgen` static feature can solve the issue, I will submit a new PR to optionally enable it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] jameslee007 commented on issue #10439: [Bug] make command stopped at Unable to find libclang in alpine
Posted by "jameslee007 (via GitHub)" <gi...@apache.org>.
jameslee007 commented on issue #10439:
URL: https://github.com/apache/skywalking/issues/10439#issuecomment-1442803214
> @jameslee007 You picked the wrong component. OAP is SkyWalking backend.
oh sorry. Thank you for helping me in this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org