martinthomson / i-d-template

A template for IETF internet draft git repositories
Other
207 stars 182 forks source link

installing via Gemfile does not work for cddl and cbor-diag #344

Closed thomas-fossati closed 1 year ago

thomas-fossati commented 1 year ago

I am trying to install cddl and cbor-diag via Gemfile:

~/draft-ietf-rats-corim $ cat Gemfile
source 'https://rubygems.org'

gem 'cddl'
gem 'cbor-diag'

which fails in the "Build Drafts" stage like this.

I have tried using the "mega" image but the result is the same:

mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
cabo commented 1 year ago

Can you try adding json-pure?

thomas-fossati commented 1 year ago

Can you try adding json-pure?

Thanks for the hint Carsten. Unfortunately it failed in the same way: https://github.com/ietf-rats-wg/draft-ietf-rats-corim/runs/8174835426

martinthomson commented 1 year ago

@cabo, this seems to be the same problem we have with kramdown-rfc, which we fixed by switching the dependency in kramdown-rfc to json_pure. Maybe you can try doing that for both of these gems too.

thomas-fossati commented 1 year ago

Thanks Carsten for the fix! For reference, the Gemfile with the versioning info that worked for me is copied below. (Note that if the environment is pristine, the explicit versions are not necessary.)

source 'https://rubygems.org'

gem 'json_pure'
gem 'cddl', '>=0.9.1'
gem 'cbor-diag', '>=0.8.1'