Td-agent 4.1.1 / fluent-plugin-geoip

I have a fresh install of CentOS 8.4, and I Installed Td-agent 4.1.1. I copy over a fluent configuration from my old host, I get strange message, appears maybe something with Ruby 2.7.3. I copied a WORKING configuration from CentOS 7.x using older td-agent 3.8 with Ruby 2.4 and it works.

Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]: /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-geoip-1.3.2/lib/fluent/plugin/filter_geoip.rb:213:in `load_database': uninitialized constant Fluent::Plugin::GeoipFilter::GeoIP2 (NameError)
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]: Did you mean?  Geoip2
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-geoip-1.3.2/lib/fluent/plugin/filter_geoip.rb:103:in `configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/plugin.rb:178:in `configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/agent.rb:154:in `add_filter'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/agent.rb:72:in `block in configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/agent.rb:64:in `each'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/agent.rb:64:in `configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/root_agent.rb:146:in `configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/engine.rb:105:in `configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/engine.rb:80:in `run_configure'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/supervisor.rb:648:in `run_supervisor'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/lib/fluent/command/fluentd.rb:345:in `<top (required)>'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.12.3/bin/fluentd:8:in `<top (required)>'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/bin/fluentd:23:in `load'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co fluentd[29073]:         from /opt/td-agent/bin/fluentd:23:in `<main>'
Jul 30 18:38:26 fluentd-dr.banksiteservices.co systemd[1]: td-agent.service: Control process exited, code=exited status=1
Jul 30 18:38:26 fluentd-dr.banksiteservices.co systemd[1]: td-agent.service: Failed with result 'exit-code'.

I can’t reproduce by td-agent 4.1.1 on CentOS 8 with following procedure:

$ sudo dnf install GeoIP-devel
$ sudo td-agent-gem install fluent-plugin-geoip
$ td-agent -c fluent.conf

The config for the filter is just copied from GitHub - y-ken/fluent-plugin-geoip: Fluentd output plugin to geolocate with geoip.

Could you describe the detail how did you install it?