OpenResty中遇到Can't locate Time/HiRes.pm in @INC问题的解决方法
生活随笔
收集整理的這篇文章主要介紹了
OpenResty中遇到Can't locate Time/HiRes.pm in @INC问题的解决方法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
今天在研究resty這個命令行工具時,執(zhí)行
resty -h
出現(xiàn)下面的報錯
BEGIN failed--compilation aborted at /opt/openresty/bin/resty line 20.
打開腳本出錯位置,看到
解決方法:
yum -y install perl-Time-HiRes
再次執(zhí)行
resty -h
就一切正常了
總結(jié)
以上是生活随笔為你收集整理的OpenResty中遇到Can't locate Time/HiRes.pm in @INC问题的解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在CentOS 6.9 x86_64上搭
- 下一篇: 在CentOS 6.9 x86_64上玩