oxidize-rb / rb-sys

Easily build Ruby native extensions in Rust
https://oxidize-rb.github.io/rb-sys/
Apache License 2.0
222 stars 34 forks source link

List dependencies needed to install gems that use rb-sys in the README #300

Closed mvz closed 1 month ago

mvz commented 8 months ago

I just finished installing the latest commonmarker gem which uses rb-sys. This failed at first with:

thread 'main' panicked at 'generate bindings: ClangDiagnostic("/home/matijs/.rbenv/versions/3.3.0/include/ruby-3.3.0/ruby/ruby.h:23:10: fatal error: 'stdarg.h' file not found\n")', /home/matijs/.cargo/registry/src/github.com-1ecc6299db9ec823/rb-sys-0.9.85/build/main.rs:55:6

The comments in #268 suggested I maybe need (part of?) clang in addition to rust, so I installed libclang-dev as a lucky guess.

Please consider adding some guidelines on what to install in order to compile gems that use rb-sys to the README.

mvz commented 1 month ago

Thanks, @ianks!