script
是一个非常好用的工具,可以记录终端中的所有操作(详情请见:http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity)。然而,在 Mac 上内置的 script
可执行文件无法记录 typescript 的时间。我正在尝试编译包含 Linux 版本 script
的 util-linux 包(详情请见:https://github.com/karelzak/util-linux),但一直没有成功。$ make
make all-recursive
Making all in po
make[2]: Nothing to be done for `all'.
CC lib/libcommon_la-strutils.lo
In file included from lib/strutils.c:16:
./include/strutils.h:77: error: conflicting types for 'strmode'
/usr/include/string.h:168: error: previous declaration of 'strmode' was here
lib/strutils.c:351: error: conflicting types for 'strmode'
/usr/include/string.h:168: error: previous declaration of 'strmode' was here
lib/strutils.c: In function 'size_to_human_string':
lib/strutils.c:442: warning: format '%jd' expects type 'intmax_t', but argument 8 has type 'uint64_t'
make[2]: *** [lib/libcommon_la-strutils.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
有没有适用于Mac的已编译可执行文件?
错误:找不到端口ttyrec
,而且Brew版本失败,显示pty's已用完
:( - Ivan Marinov