我在 Mac OS X 10.7.4 上。当我尝试安装robotskirt
ornode-discount
时,我得到了错误的架构错误。例子:
[1/2] cxx: src/markdown.cc -> build/Release/src/markdown_1.o
[2/2] cxx_link: build/Release/src/markdown_1.o -> build/Release/markdown.node
ld: warning: ignoring file ./libmarkdown.a, file was built for archive which is not the architecture being linked (i386)
Waf: Leaving directory `/Users/jong/node_modules/discount/build'
'build' finished successfully (2.639s)
discount@0.2.3 node_modules/discount
和机器人裙:
[1/7] cc: src/markdown.c -> build/Release/src/markdown_1.o
[2/7] cc: src/array.c -> build/Release/src/array_1.o
[3/7] cc: src/buffer.c -> build/Release/src/buffer_1.o
[4/7] cc: src/html.c -> build/Release/src/html_1.o
[5/7] cxx: src/robotskirt.cc -> build/Release/src/robotskirt_2.o
[6/7] cxx_link: build/Release/src/robotskirt_2.o build/Release/src/markdown_1.o build/Release/src/array_1.o build/Release/src/buffer_1.o build/Release/src/html_1.o -> build/Release/robotskirt.node
[7/7] cc_link: build/Release/src/markdown_1.o build/Release/src/array_1.o build/Release/src/buffer_1.o build/Release/src/html_1.o -> build/Release/libsundown.dylib
ld: warning: ignoring file Release/src/markdown_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/array_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/buffer_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/html_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/markdown_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/array_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/buffer_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file Release/src/html_1.o, file was built for unsupported file format which is not the architecture being linked (i386)
Waf: Leaving directory `/Users/jong/node_modules/robotskirt/build'
'build' finished successfully (0.406s)
robotskirt@0.2.5 node_modules/robotskirt
对我来说,这看起来像是一个 C 编译器问题,但我对此一无所知。我打开的票:https ://github.com/benmills/robotskirt/issues/20#issuecomment-6794474,https : //github.com/visionmedia/node-discount/issues/20。
任何人都知道我该如何解决这个问题,或者我该如何解决这个问题?