Login fails with Can’t locate Sys/Hostname.pm in “@INC” on Fedora

Issue:

Fedora is missing some basic libraries with a default install causing the following error

Error: Can't locate Sys/Hostname.pm in @INC (you may need to install the Sys::Hostname module) (@INC contains:

Solution:

Install perl-Sys-Hostname

dnf install perl-Sys-Hostname