【发布时间】:2015-06-18 03:30:24
【问题描述】:
是的,我发现其他类似的问题:
- TERM environment variable not set on mac
- TERM environment variable not set
- how to remove "TERM environment variable not set"
...
但是,我的环境变量是设置好的:
$ echo $TERM
xterm-256color
但 LLDB 无法识别:
$ lldb myexecutable
(lldb) target create "myexecutable"
Current executable set to 'myexecutable' (x86_64).
(lldb) platform shell clear
TERM environment variable not set.
error: command returned with status 1
我也为 GUI 程序设置了环境变量:
envars.app(applescript 应用程序在登录时运行。)
...
set ENV_TERM to "/bin/launchctl setenv TERM xterm-256color;"
...
do shell script ... & ENV_TERM & ...
或
...
set ENV_TERM to "/bin/launchctl setenv TERM xterm-256color:-dumb;"
...
do shell script ... & ENV_TERM & ...
【问题讨论】:
标签: lldb