【问题标题】:/bin/sh don't read .profile after update to mac os x 10.10/bin/sh 更新到 mac os x 10.10 后不读取 .profile
【发布时间】:2014-12-24 03:29:18
【问题描述】:

我已经将我的 mac os x 更新到 10.10 并且在程序编译方面遇到了很多问题。 看起来默认的 /bin/sh 不再读取 .profile 了。 因此,依赖于环境变量的所有脚本都不起作用。 甚至 make 也无法执行编译,因为它无法在非默认路径中找到编译器可执行文件。 一些(但不是全部!)macports 端口现在坏了,我认为是因为这个问题。 有谁知道,如何解决这个问题?

提前致谢, 帕维尔

【问题讨论】:

  • 转到Apple stack他们会帮助你
  • 谢谢,我去问问

标签: macos sh osx-yosemite


【解决方案1】:

/bin/sh 似乎为我阅读了 Yosemite 上的 .profile。

$ cat ~/.profile
echo .profile

$ /bin/sh --login
.profile
$ 

【讨论】:

    猜你喜欢
    • 2014-12-24
    • 2014-07-24
    • 1970-01-01
    • 2015-03-22
    • 2015-11-03
    • 2015-03-21
    • 1970-01-01
    • 2015-11-25
    • 1970-01-01
    相关资源
    最近更新 更多