【问题标题】:MAC OSX LION: gcc on mac not compiling wgetMAC OSX LION:mac 上的 gcc 未编译 wget
【发布时间】:2013-08-10 05:16:02
【问题描述】:

我正在尝试在我的 Mac 上安装 lynx / wget。并且安装需要gcc 编译。我的/usr/local/bin 目录中有gcc。我看到它在那里非常多。

           spankincubus:Downloads spankincubus$ gcc -v
           Using built-in specs.
           COLLECT_GCC=gcc
           COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/lto-       wrapper
           Target: x86_64-apple-darwin11.0.0
           Configured with: ../gcc-4.6.1/configure --enable-languages=fortran,c++
           Thread model: posix
           gcc version 4.6.1 (GCC) 

但是当我为 wget 运行配置实用程序时,我得到一个错误。任何的想法??我不是 gcc 的记录专家。

checking whether make sets $(MAKE)... no
checking build system type... i386-apple-darwin11.4.2
checking host system type... i386-apple-darwin11.4.2
checking for gcc... gcc
checking whether the C compiler works... no
**configure: error: in `/usr/local/bin/wget-1.14':
configure: error: C compiler cannot create executables
See `config.log' for more details**

这就是我的 gcc 的样子

  -rwxr-xr-x   1 root          wheel    91368 Jul 23  2011 gcov
  -rwxr-xr-x   1 root          wheel   462124 Jul 23  2011 cpp
  -rwxr-xr-x   1 root          wheel   462060 Jul 23  2011 gcc

【问题讨论】:

    标签: c++ macos gcc wget lynx


    【解决方案1】:

    老实说,尽管 gcc 似乎存在;但它是否指向有效安装?听起来它仍然没有正确安装,升级到 Mountain Lion 后,您所有的开源工具都已被清除并推送到 Xcode,如有必要,必须手动安装。

    【讨论】:

    • 谢谢!所以如果我理解正确,我应该安装 gcc。现在我不想下载 Xcode,只想下载 gcc。我找到了这个来源gcc.gnu.org。还是我“必须”安装 Xcode?​​span>
    • developer.apple.com/downloads -- 您不必订阅付费程序,但您需要在该服务中注册一个 Apple id。
    猜你喜欢
    • 2022-01-09
    • 2012-01-17
    • 1970-01-01
    • 2013-09-27
    • 2010-10-08
    • 1970-01-01
    • 2017-10-07
    • 1970-01-01
    • 2013-05-04
    相关资源
    最近更新 更多