grafana / pyroscope-rs

Pyroscope Profiler for Rust. Profile your Rust applications.
Apache License 2.0
132 stars 22 forks source link

ruby gem ffi dependency has no prebuilt binary and compiles at installation time #158

Open korniltsev opened 2 months ago

korniltsev commented 2 months ago

which can fail if there are not compiler or ruby headers

steps to reproduce:

  1. get a fresh ubuntu 22.04
  2. install ruby
  3. gem install pyroscope --verbose
BrianHawley commented 2 months ago

For this kind of issue, you need to say which hardware platform and ruby version you are using.

https://rubygems.org/gems/pyroscope shows gems with precompiled binaries for x86_64-linux and aarch64-linux. Ubuntu 22.04 is glibc-based, IIRC, so if you have one of those hardware platforms then it should work. If it doesn't work, then we need enough information to replicate the issue.

korniltsev commented 2 months ago

https://rubygems.org/gems/pyroscope shows gems with precompiled binaries for x86_64-linux and aarch64-linux. Ubuntu 22.04 is glibc-based, IIRC, so if you have one of those hardware platforms then it should work. If it doesn't work, then we need enough information to replicate the issue.

it is x86_64-linux glibc

The issue is not with the pyroscope depdendency - this one is pulled as a correct arch specific binary. The issue is with the ffi dependency of pyroscope which is not downloaded as a binary