Can't locate Locale/gettext.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 / usr/share/perl5 .).
时间: 2023-07-14 15:03:38 浏览: 60
The error message suggests that the Perl module "Locale::gettext" is missing on your system. To resolve this issue, you can follow these steps:
1. Update the package manager and install the necessary packages:
```
sudo yum update
sudo yum install -y perl-CPAN gettext-devel
```
2. Launch the CPAN shell to install the missing module:
```
sudo cpan
```
3. In the CPAN shell, install the "Locale::gettext" module:
```
install Locale::gettext
```
4. Follow the prompts and let CPAN handle the installation process. It may take a few minutes to download and install the module and its dependencies.
Once the installation is complete, you should be able to run your Perl script without encountering the "Can't locate Locale/gettext.pm" error.