apache裝不起來

看板MacDev作者 (881 forever)時間11年前 (2013/11/01 18:48), 編輯推噓4(405)
留言9則, 6人參與, 最新討論串1/1
一直出現error 執行完這個 ./configure --prefix=PREFIX之後 訊息如下 這要怎麼處理啊? checking target system type... x86_64-apple-darwin13.0.0 configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... yes setting CC to "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc" setting CPP to "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc -E" setting CFLAGS to " " setting CPPFLAGS to " -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK" setting LDFLAGS to " " configure: configure: Configuring Apache Portable Runtime Utility library... configure: checking for APR-util... yes checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc checking whether the C compiler works... no configure: error: in `/Users/mango/httpd-2.4.6': configure: error: C compiler cannot create executables See `config.log' for more details -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.248.179.169

11/01 23:40, , 1F
我想應該是沒裝command line tool?
11/01 23:40, 1F

11/01 23:55, , 2F
不過我想問你沒事幹嘛自己 build apache...
11/01 23:55, 2F

11/02 00:14, , 3F
樓上的意思是?
11/02 00:14, 3F

11/02 00:43, , 4F
請愛用homebrew or macport
11/02 00:43, 4F

11/02 11:45, , 5F
uranusjr 的意思是直接裝就好了? 要怎麼直接裝啊?
11/02 11:45, 5F

11/02 21:41, , 6F
出廠不就有帶 apache 了?
11/02 21:41, 6F

11/03 17:23, , 7F
感謝各位的指引 的確不用安裝 http://ppt.cc/P~vM
11/03 17:23, 7F

11/04 09:49, , 8F
你有 developer 付費資格的話,有免費 OSX Server
11/04 09:49, 8F

11/04 10:36, , 9F
http://ppt.cc/P~vM 這內容很實用!
11/04 10:36, 9F
文章代碼(AID): #1ISuSLPa (MacDev)
文章代碼(AID): #1ISuSLPa (MacDev)