Perl script (rootcrs.pl) execution failed: Can't locate Env.pm in @INC (@INC contains:

Error Description: 

Perl script execution failed with following errors.

[root@Node1 install]# ./rootcrs.pl -unlock
Can't locate Env.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 . . ./../../perl/lib) at crsinstall.pm line 210.
BEGIN failed--compilation aborted at crsinstall.pm line 210.
Compilation failed in require at ./rootcrs.pl line 156.
BEGIN failed--compilation aborted at ./rootcrs.pl line 156.

Solution Description:
 
Step 1: 
search for Env.pm file from the / and locate the file using following command as root user.

find . -name Env.pm -print

Step 2: 
copy the Env.pm file to /usr/share/perl5/vendor_perl location and re-execute the perl script

[root@Node1 install]# cp -i /u01/app/12.1.0/grid/perl/lib/5.14.1/Env.pm /usr/share/perl5/vendor_perl
[root@Node1 install]# ./rootcrs.pl -unlock
Using configuration parameter file: ./crsconfig_params
2016/08/30 01:35:16 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.


2016/08/30 01:36:54 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.

2016/08/30 01:36:54 CLSRSC-347: Successfully unlock /u01/app/12.1.0/grid

No comments:

Post a Comment