[問題] C compiler cannot create executables

看板Linux作者 (Liang)時間14年前 (2012/04/05 20:23), 編輯推噓0(005)
留言5則, 4人參與, 最新討論串1/1
小弟我最近在mac 上裝 PECL 執行./configure 時 出現了下面的error 有google了一下 但還是不知道如何解決 checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... grep -E checking for a sed that does not truncate output... /usr/bin/sed checking host system type... i386-apple-darwin11.3.0 checking target system type... i386-apple-darwin11.3.0 checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. 請各問大大解惑一下 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.126.145

04/05 20:26, , 1F
是不是沒有裝gcc呀?
04/05 20:26, 1F

04/05 20:29, , 2F
我有裝xcode xcode裡面好像有附 gcc
04/05 20:29, 2F

04/05 21:22, , 3F
xcode是llvm才對吧
04/05 21:22, 3F

04/07 12:37, , 4F
不過會建立一個 gcc 的 symlink (指向 llvm-gcc-4.x)
04/07 12:37, 4F

04/07 12:37, , 5F
找不到應該是因為你沒裝 command line tools
04/07 12:37, 5F
文章代碼(AID): #1FVOxUCM (Linux)
文章代碼(AID): #1FVOxUCM (Linux)