【发布时间】:2014-04-11 05:58:56
【问题描述】:
没有太多编程经验,但我看到了这个开源代码,供大家谈论的速读器之一使用,并认为尝试在我自己的计算机上运行它会很酷。
文件可在此处获得:https://github.com/pasky/speedread
我想知道我应该在命令提示符中输入什么来让程序运行。我的电脑上已经有一个 perl 解释器。但我不确定如何让程序运行。对不起,如果这是一个超级无聊的问题。
我试过了
perl C:\speadread-master\speedread (and yes, it was on the C: drive)
我得到了错误:
Use of encoding pragma is deprecated at C:\speadread-master\speedread line 39.
'stts' is not recognized as an internal or external command, operable program of batch file.
←[31mc←[0←[K
我也试过了(因为它出现在 github 的 gif 中)
~/speedread$ head -n 21 tea.txt | ./speedread -w 250
我得到了错误:
'~' is not recognized as an internal or external command, operable program or batch file
【问题讨论】:
-
从
stty的用法来看,该程序似乎是 Unix 特定的——你不能在 Windows 上使用它。但除此之外,您第一次尝试执行该脚本是正确的。
标签: perl command-line github command-prompt