Jekyll installation error regardless of sudo Make failed exit code 2

I’m trying to install Jekyll onto a server. I have Ruby installed at 2.7.0, and have Bundler installed as well, I’m using RVM and all of this went well during installation, however I can’t seem to install jekyll when I run gem install jekyll or sudo gem install jekyll on a Cent OS server, the error I get is attached as:

Building native extensions. This could take a while...
ERROR:  Error installing jekyll:
	ERROR: Failed to build gem native extension.

    current directory: /usr/local/rvm/gems/ruby-2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
/usr/local/rvm/rubies/ruby-2.7.0/bin/ruby -I /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0 -r ./siteconf20200811-15255-1rx4cpi.rb extconf.rb
creating Makefile

current directory: /usr/local/rvm/gems/ruby-2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR=" clean

current directory: /usr/local/rvm/gems/ruby-2.7.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR="
compiling ruby_http_parser.c
compiling ryah_http_parser.c
linking shared-object
/usr/bin/ld: unrecognized option '--compress-debug-sections=zlib'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.7.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.7.0/extensions/x86_64-linux/2.7.0/http_parser.rb-0.6.0/gem_make.out

Not sure why it’s failing?

Searching for the error message (/usr/bin/ld: unrecognized option '--compress-debug-sections=zlib') gets an SO hit with a suggested workaround that might help: