[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: oj.h not found



Hello Vinay,

On 12/24/22 00:09, Vinay wrote:
adding the header file in /usr/include solved the #include "oj.h" problem.

execute_before_dh_auto_install:
    for r in $$(ruby -rruby_debian_dev -e 'puts RubyDebianDev::SUPPORTED_RUBY_VERSIONS.values'); do \                 dh_install ext/oj/oj.h $$($$r -e 'puts RbConfig::CONFIG["oldincludedir"]'); \
     done

Should the header be in /usr/include/ or it should be under /usr/include/x86_64-linux-gnu/ruby-3.1.0/  ?

i could not find any config key for /usr/include/x86_64-linux-gnu/ruby-3.1.0/


I just found an old thread[1] about nokogiri that boutil mentioned.

Quoting terceiro's reply here

"I think using a ruby version-specific path
is the right directory to use. You won't be able to build something
against nokogiri and use it with a given Ruby version before nokogiri
itself is available for that version"

sed 's/nokogiri/oj/g'


I think this makes sense so we should install the header files in
/usr/include/ruby-<ver>/vendor_ruby

I have less ruby dev experience so please correct me if I'm wrong here.

and Merry Christmas Team :)

[1] - https://lists.debian.org/debian-ruby/2021/09/msg00022.html

Cheers
--
Mohammed Bilal
2D65 BC1E B966 5A6E 97F9 730A B3F5 9452 8521 9E1F

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: