1. 程式人生 > >CENTOS7 執行rootcrs.pl重新配置GI報錯

CENTOS7 執行rootcrs.pl重新配置GI報錯

報錯資訊

[[email protected] ~]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -verbose -force
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perlusr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /u01/app/11.2.0/grid/crs/install) at /u01/app/11.2.0/gd/crs/install/crsconfig_lib.pm line 703.
BEGIN failed--compilation aborted at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 703.
Compilation failed in require at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.
BEGIN failed--compilation aborted at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 305.

解決方法

根據提示資訊Can't locate Env.pm 可以知道找不到這玩意了。所以cp一份過去

[[email protected] ~]#cp -p /u01/app/11.2.0/grid/perl/lib/5.10.0/Env.pm /usr/lib64/perl5/vendor_perl/

就OK了!記錄一下