Error:" Can't locate Term/ReadKey.pm in @INC" 的解决方法
来源:互联网 发布:淘宝上卖暗黑悬赏箱子 编辑:程序博客网 时间:2024/05/18 03:40
在linux系统中安装perl程序编译的最后几步或者已经安装完成、运行程序时,可能会出现“Can't locate Term/ReadKey.pm in @INC” 的错误。
Term::ReadKey - A perl module for simple terminal control
Term::ReadKey is a compiled perl module dedicated to providing simple control over terminal driver modes (cbreak, raw, cooked, etc.,) support for non-blocking reads, if the architecture allows, and some generalized handy functions for working with terminals. One of the main goals is to have the functions as portable as possible, so you can just plug in "use Term::ReadKey" on any architecture and have a good likelyhood of it working.
以上来源于cpan.org对于Term::ReadKey的说明,可以看出Term::ReadKey是一个已经编译好的模块,能够为各种终端驱动模式提供控制。我认为Term::ReadKey类似于一个底层框架,为各种perl程序提供支持。
解决方法:
在终端中输入
#cpan,
如果不行,则输入
#perl -MCPAN -e "shell".
然后出现cpan>提示符后,输入命令
install Term::ReadKey.
正常情况下, 系统就会自动寻找合适的镜像站点,从网络安装Term::ReadKey.
再编译或运行,程序就可以了。
- Error:" Can't locate Term/ReadKey.pm in @INC" 的解决方法
- Error:" Can't locate Term/ReadKey.pm in @INC" 的解决方法
- Can't locate JSON.pm in @INC 解决方法
- Can't locate JSON/SL.pm in @INC 解决方法
- Can't locate Switch.pm in @INC
- Can't locate CPAN.pm in @INC
- Can't locate CompEMdbconsole.pm in @INC
- Can't locate Switch.pm in @INC
- Can't locate Switch.pm in @INC
- Can't locate CPAN.pm in @INC的解决办法
- Can't locate Switch.pm in @INC 的解决办法
- Can't locate Config/IniFiles.pm in @INC
- mysqlhotcopy 解决Can't locate DBI.pm in @INC
- "Can't locate Net/SNMP.pm in @INC....."
- Can't locate Mail/Send.pm in @INC
- Can't locate ExtUtils/MakeMaker.pm in @INC
- "Can't locate CPAN.pm in @INC " 解决方案
- can't locate ExtUtils/MakeMaker.pm in @INC
- as3俄罗斯方块
- Fedora 12 LAMP的安装
- 抛弃WebService,在.NET4中用 jQuery 调用 WCF
- jQuery调用WCF需要注意的一些问题
- 在.NET 4中用IIS部署WCF就这么简单
- Error:" Can't locate Term/ReadKey.pm in @INC" 的解决方法
- 串口通讯流控制(记录)
- 多线程:C#线程同步lock,Monitor,Mutex,同步事件和等待句柄(上)
- jquery调WCF
- 层1 层2
- Oracle 分区表 总结
- 多线程:C#线程同步lock,Monitor,Mutex,同步事件和等待句柄(中)
- 多线程:C#线程同步lock,Monitor,Mutex,同步事件和等待句柄(下)
- 几个VS编译器(cl.exe)命令行编译的例子