2

我正在尝试让自制软件在我的 osx 10.5.8 上运行,在解决了所有 brew doctor 的问题后,我正在尝试使用 brew 安装 git:

    Mac-mini:~ Dagmara$ brew install git
    Error: GCC could not be found
    /usr/local/Library/Homebrew/extend/ENV.rb:142:in `gcc'
    /usr/local/Library/Homebrew/extend/ENV.rb:35:in `send'
    /usr/local/Library/Homebrew/extend/ENV.rb:35:in `setup_build_environment'
    /usr/local/Library/Homebrew/build.rb:23
    /usr/local/Library/Formula/git.rb:86
    Error: Suspicious installation failure

这是一个痛苦的屁股,因为如果我运行 which gcc 我得到:

     /usr/bin/gcc

在查看 /usr/bin 时,我看到了 2 个 gcc 安装:

    gcc      gcc-4.0

导出 $PATH:

    Mac-mini:~ Dagmara$ export $PATH
    -bash: export:`/usr/local/mysql/bin:/usr/local/git/bin/git:/usr/bin/gcc:/usr/local/mysql/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin': not a valid identifier

不过,不确定该有效标识符问题是怎么回事。所以我需要帮助解决我的 GCC 问题 :) 提前谢谢,亚历克斯

4

0 回答 0