Overview
The error message Required perl module is not installed [GEOIP2::Database::Reader] appears on the plugin settings page when essential Perl dependencies are missing from the server environment. This dependency is required for the proper operation of the RelayCountry and URILocalBL anti-spam plugins.
Prerequisites
- Sudo or root access to the server
- Network connectivity to access package repositories
Resolution Steps
Install the required Perl modules by executing the command corresponding to your operating system distribution:
AlmaLinux / CloudLinux / RHEL
yum install perl-GeoIP2 perl-MaxMind-DB-Reader-XS
Debian / Ubuntu
apt-get install libgeoip2-perl libmaxminddb0 libmaxmind-db-reader-xs-perl
Once the installation completes, refresh the plugin settings page to confirm that the error message has been resolved.
Troubleshooting
- If the package manager reports that a package cannot be located, update your repository cache first by running
yum updateorapt-get update. - If the error persists after installation, verify that the Perl interpreter path matches the environment expected by the anti-spam plugins.