I’m encountering an issue while trying to install Shopify CLI on Ubuntu 22.04 and need help resolving it. I’ve obtained the .deb file from Shopify’s GitHub page, but upon attempting to install it, I receive an error.
ERROR: Error installing shopify-cli:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/ffi-1.15.4/ext/ffi_c
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20211012-33803-1ymrqv7.rb 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.
extconf failed, exit code 1