Closed stackmystack closed 2 years ago
Hi! Sorry you're having problems, I'll try to help.
If you know what Ruby versions your code is supposed to support, my advice is to set it in your Rakefile, similar to what's being done in https://github.com/flavorjones/ruby-c-extensions-explained/blob/main/precompiled/Rakefile#L20
Worth noting, this repository is intended to be used primarily via the rake-compiler-dock
commandline tool, which sets up user permissions, sudoer permissions, etc. While I'd be happy to dig into what specifically isn't working for you, it may be simpler and easier to set the environment variable directly as I described above.
Thank you. Compilation now works following the same Rakefile layout in the example.
It doesn't work by setting the env var in extconf.rb though.
Hello,
I am not able to work with
RUBY_CC_VERSION
at all. Here's the branch I am working on: https://github.com/stackmystack/grenadier/tree/compile/include-tree-sitter.When I run the following:
The compilation works, and goes through the list of
RUBY_CC_VERSION
predefined in the dockerfile.However, my project only supports
RUBY_VERSION >= 2.7
, and I can't seem to be able to pass a customRUBY_CC_VERSION
to the docker image. I tried the following:And in all those cases, I get:
Which is obviously not the correct rake task (I defined the
gem:<arch>
tasks for ease of testing.Any help would be appreciated.