ssh 警告消息缺少文件问题

ssh 警告消息缺少文件问题

当我登录 ssh 时(centos 6.5 64bit)

Can't locate warnings.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 /usr/local/share/perl5/local/lib.pm line 2.
BEGIN failed--compilation aborted at /usr/local/share/perl5/local/lib.pm line 2.
Compilation failed in require.
BEGIN failed--compilation aborted.

su -
Can't locate warnings.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 /usr/local/share/perl5/local/lib.pm line 2.
BEGIN failed--compilation aborted at /usr/local/share/perl5/local/lib.pm line 2.
Compilation failed in require.
BEGIN failed--compilation aborted.

我怎样才能解决这个问题?

答案1

似乎每次 SSH 登录时都会运行某种 perl 脚本,并且该脚本需要比服务器上安装的版本更新的 perl 版本。检查您的sshd配置/etc/profilebashrc文件,看看每次连接到 shell 时可能要获取什么。

相关内容