【问题标题】:Omake getenv -- environment variables are not foundOmake getenv -- 未找到环境变量
【发布时间】:2017-08-16 16:30:54
【问题描述】:

getenv 没有读取我的 bash 环境中存在的一些环境变量(在 .bashrc 中设置)(也就是说它们未定义)。它在寻找其他环境吗?还是....?

monster@Tangerine ~/Casey/piano-core $ omake
*** omake: reading OMakefiles
--- Checking for ocamlfind... (found /home/monster/ocamlbrew/ocaml-4.02.3/.opam/4.02.2/bin/ocamlfind)
--- Checking for ocamlc.opt... (found /home/monster/ocamlbrew/ocaml-4.02.3/.opam/4.02.2/bin/ocamlc.opt)
--- Checking for ocamlopt.opt... (found /home/monster/ocamlbrew/ocaml-4.02.3/.opam/4.02.2/bin/ocamlopt.opt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
*** omake error:
   File _build/score-player/stubs/OMakefile: line 14, characters 8-30
   undefined environment variable: SCORE_PLAYER
monster@Tangerine ~/Casey/piano-core $ $SCORE_PLAYER
bash: /home/monster/Casey/score-player: Is a directory
monster@Tangerine ~/Casey/piano-core $ rlwrap osh
% getenv(SCORE_PLAYER)
*** omake error:
   File -: line 1, characters 0-20
   undefined environment variable: SCORE_PLAYER
% 

【问题讨论】:

    标签: getenv omake


    【解决方案1】:

    好的,所以我通过将变量放在 /etc/environment 而不是 ~/.bashrc 中解决了这个问题。我想我对哪些环境是哪些环境不是很了解......

    【讨论】:

      猜你喜欢
      • 2014-02-02
      • 2014-05-10
      • 1970-01-01
      • 2020-03-07
      • 2014-06-10
      • 1970-01-01
      • 2021-09-03
      • 2016-01-23
      • 2017-02-04
      相关资源
      最近更新 更多