On 25/12/22 00:57, Mohd Bilal wrote:
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 :)
Merry Christmas (:
[1] - https://lists.debian.org/debian-ruby/2021/09/msg00022.html
for oj-introspect required the following header files oj.h, cache8.h,
rxclass.h , parser.h , buf.h , usual.h
after adding all the header files under vendor_ruby (using vendorhdrdir)
couldn't find cache8.h,rxclass,h ...
or adding only oj.h under
/usr/include/x86_64-linux-gnu/ruby-3.1.0/vendor_ruby/
and other files under /usr/include works ?