Unable to install Jekyll on Mac M1

“gem install jekyll bundler” after running this command jekyll installation is failing everytime, tried everything, updating path, switching ruby versions, but the error remains the same. The error occurs at the Makefile stage. I am using ruby version 3.3.7 (tried with 3.2.2 as well but still failed), gem version 3.4.10, ruby is installed via rbenv through homebrew. Any help would be a lifesaver. Thank you.

My recommendation is this: