script
là một công cụ tuyệt vời để ghi lại tất cả các hoạt động trong thiết bị đầu cuối (http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity). Việc xây dựng script
thực thi trên máy Mac không thể ghi lại thời gian của bản ghi. Tôi cố gắng để biên dịch các gói util-linux (https://github.com/karelzak/util-linux, trong đó có phiên bản Linux script
) nhưng không thành công:tập lệnh để ghi thiết bị đầu cuối trên máy Mac
$ 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
Có bất kỳ biên soạn excutable ra có cho Mac?
OSX High Sierra: 'Lỗi: Port ttyrec not found' và phiên bản brew không thành công' Out of pty's' :( –