build openresty 时的问题

130 views
Skip to first unread message

worm...@gmail.com

unread,
May 8, 2014, 5:35:18 AM5/8/14
to open...@googlegroups.com
macos 10.9.2
用brew instal pcre
然后再configure的时候报了错

./configure --with-cc-opt="-I/usr/local/Cellar/pcre/8.35/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.35/lib"
platform: macosx (darwin)
cp -rp bundle/ build
cd build
cd LuaJIT-2.1-20140330
make TARGET_STRIP=@: CCDEBUG=-g PREFIX=/usr/local/openresty/luajit
==== Building LuaJIT 2.1.0-alpha ====
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
HOSTCC host/minilua.o
HOSTLINK host/minilua
ld: library not found for -lgcc_ext.10.4
collect2: error: ld returned 1 exit status
make[1]: *** [host/minilua] Error 1
make: *** [default] Error 2
ERROR: failed to run command: make TARGET_STRIP=@: CCDEBUG=-g PREFIX=/usr/local/openresty/luajit


应该这个lib没找到
library not found for -lgcc_ext.10.4

我本机应该是有gcc
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin11.3.0
Configured with: ../gcc-4.8-20120408/configure --enable-languages=fortran
Thread model: posix
gcc version 4.8.0 20120408 (experimental) (GCC)

请问这个如何破呢?

smallfish

unread,
May 8, 2014, 5:49:07 AM5/8/14
to open...@googlegroups.com
你是自己编译的gcc吧?不是默认xcode自带的。




--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html

Reply all
Reply to author
Forward
0 new messages