Fixing the Error Can’t locate IPC/Run.pm in @INC in CentOS 7.5
First Published: .
So if you get an error like this:
Can't locate IPC/Run.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 .) at ./check_ipmi_sensor line 35. BEGIN failed--compilation aborted at ./check_ipmi_sensor line 35.
The solutions is simple.
sudo yum makecache yum install perl-IPC-Run
You’ll see the list of mirrors and an output similar to this:
Loaded plugins: fastestmirror, versionlock Loading mirror speeds from cached hostfile centos-updates | 3.4 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package perl-IPC-Run.noarch 0:0.92-2.el7 will be installed --> Processing Dependency: perl(IO::Pty) >= 1.08 for package: perl-IPC-Run-0.92-2.el7.noarch --> Running transaction check ---> Package perl-IO-Tty.x86_64 0:1.10-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================== Installing: perl-IPC-Run noarch 0.92-2.el7 centos-base 122 k Installing for dependencies: perl-IO-Tty x86_64 1.10-11.el7 centos-base 42 k Transaction Summary =============================================================================================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 163 k Installed size: 397 k Downloading packages: (1/2): perl-IO-Tty-1.10-11.el7.x86_64.rpm | 42 kB 00:00:00 (2/2): perl-IPC-Run-0.92-2.el7.noarch.rpm | 122 kB 00:00:11 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 15 kB/s | 163 kB 00:00:11 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : perl-IO-Tty-1.10-11.el7.x86_64 1/2 Installing : perl-IPC-Run-0.92-2.el7.noarch 2/2 Verifying : perl-IPC-Run-0.92-2.el7.noarch 1/2 Verifying : perl-IO-Tty-1.10-11.el7.x86_64 2/2 Installed: perl-IPC-Run.noarch 0:0.92-2.el7 Dependency Installed: perl-IO-Tty.x86_64 0:1.10-11.el7 Complete!
Rules for writing a Comment