On Wed, Jul 10, 2024 at 12:06 PM Jose Sierra <
jo...@josesierra.com> wrote:
> Building native extensions. This could take a while...
> ERROR: Error installing nanoc:
> ERROR: Failed to build gem native extension.
> current directory: /var/lib/gems/3.2.0/gems/rbtree-0.4.6
> /usr/bin/ruby3.2 -I/usr/lib/ruby/vendor_ruby extconf.rb
> 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.
It appears that you are missing the Ruby header file(s) which are
needed to build/install the "rbtree" extension which is a dependency
of nanoc. You should be able resolve this by following the suggestion
above. On Ubuntu, the necessary package name is likely "ruby-dev", so
install it like this:
sudo apt update && sudo apt -y install ruby-dev
Afterward, try the nanoc installation again.