簡體   English   中英

MAC OSX LION:Mac上的gcc無法編譯wget

[英]MAC OSX LION: gcc on mac not compiling wget

我正在嘗試在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運行configure實用程序時,出現錯誤。 任何想法?? 我不是記錄的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

老實說,即使看起來gcc存在; 但這是否指向有效的安裝? 聽起來仍然好像安裝不正確,並且升級到Mountain Lion一樣,所有開源工具都已被清理掉並推送到Xcode,並且在必要時必須手動安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM