手工安装CDB执行脚本报错:Can't locate Term/ReadKey.pm in @INC...

报错信息

执行脚本@?/rdbms/admin/catcdb.sql时报错:

Can't locate Term/ReadKey.pm in @INC (@INC contains: /u01/app/oracle/product/19.3.0/dbhome_1/rdbms/admin /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 /u01/app/oracle/product/19.3.0/dbhome_1/rdbms/admin/catcdb.pl line 37.
BEGIN failed--compilation aborted at /u01/app/oracle/product/19.3.0/dbhome_1/rdbms/admin/catcdb.pl line 37.

 

解决办法

yum install cpan -y
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker -y
cpan ExtUtils::Install
在终端中输入
cpan

如果不行,则输入

perl -MCPAN -e "shell"

然后出现cpan>提示符后,输入命令

install Term::ReadKey

正常情况下, 系统就会自动寻找合适的镜像站点,从网络安装Term::ReadKey,安装完成后,重新执行@?/rdbms/admin/catcdb.sql

posted @ 2021-07-19 16:16  chchcharlie、  阅读(256)  评论(0编辑  收藏  举报