ci(pre-commit): error message during gem install mdl
Error message during pre-commit ci
$ gem install mdl
Successfully installed concurrent-ruby-1.2.3
Successfully installed chef-utils-18.4.12
Successfully installed mixlib-shellout-3.2.7
Successfully installed tomlrb-2.0.3
Successfully installed mixlib-config-3.0.27
Successfully installed mixlib-cli-2.1.8
Building native extensions. This could take a while...
ERROR: Error installing mdl:
ERROR: Failed to build gem native extension.
current directory: /usr/local/share/gems/gems/strscan-3.1.0/ext/strscan
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20240516-142-acw4ad.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /usr/local/share/gems/gems/strscan-3.1.0 for inspection.
Results logged to /usr/local/lib64/gems/ruby/strscan-3.1.0/gem_make.out
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1