今天在研究resty这个命令行工具时,执行

resty -h

出现下面的报错

OpenResty中遇到"Can't locate Time/HiRes.pm in @INC"问题的解决方法

Can't locate Time/HiRes.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 /opt/openresty/bin/resty line 20.
BEGIN failed--compilation aborted at /opt/openresty/bin/resty line 20.
打开脚本出错位置,看到
OpenResty中遇到"Can't locate Time/HiRes.pm in @INC"问题的解决方法

解决方法:

yum -y install perl-Time-HiRes

OpenResty中遇到"Can't locate Time/HiRes.pm in @INC"问题的解决方法


再次执行

resty -h

就一切正常了

OpenResty中遇到"Can't locate Time/HiRes.pm in @INC"问题的解决方法


相关文章:

  • 2022-02-12
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-08-05
相关资源
相似解决方案