OPatchauto fails to execute rootcrs.pl due to: Can't locate Env.pm in @INC

(Doc ID 2393523.1)

Last updated on MAY 17, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

OPatchauto session fails calling rootcrs.pl:

Stopping CRS ... Failed
Command "/usr/bin/perl /u01/app/12.1.0/grid/crs/install/rootcrs.pl -prepatch" execution failed:
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 . /u01/app/12.1.0/grid/crs/install /u01/app/12.1.0/grid/crs/install/../../perl/lib) at /u01/app/12.1.0/grid/crs/install/crsinstall.pm line 210.
BEGIN failed--compilation aborted at /u01/app/12.1.0/grid/crs/install/crsinstall.pm line 210.
Compilation failed in require at /u01/app/12.1.0/grid/crs/install/rootcrs.pl line 156.
BEGIN failed--compilation aborted at /u01/app/12.1.0/grid/crs/install/rootcrs.pl line 156.

 Customer is using OPatch  12.1.0.1.3

Changes

Customer is attempting to apply a Clusterware patch.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms