Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我查看了这个页面来为我的头文件设置一个包含路径。
但是当我尝试这样设置时:
C_INCLUDE_PATH=$HOME/breakpad/src
我收到此错误:
export $C_INCLUDE_PATH -bash: export: `/home/ubuntu/breakpad/src/': not a valid identifier
这是为什么?
导出变量:
export C_INCLUDE_PATH
请注意,没有$
$
仅供参考:这个扩展可以让你做一些聪明的事情,比如:
$ export FOO=BAR $ export $FOO=baz $ echo $BAR baz