0

私はMacOSX10.7.4を使用しています。robotskirtまたはをインストールしようとするとnode-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

そしてrobotskirt:

[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

誰かが私がこれを修正する方法、または私がこの問題を解決する方法を知っていますか?

4

1 に答える 1

0

パス上に複数のCコンパイラが存在する場合や、一致しないCコンパイラとリンカが存在する場合があります(特に、1つはx86用で、もう1つはx64用です)。「which-agcc」および「which-ald」を使用して、コンパイラーとリンカーがどこから実行されているかを調べます。これらのコマンドが複数のものを出力する場合は、PATH環境を編集して、これらのディレクトリの1つを変数除外し、実行するバージョンを制御する必要があります。

于 2012-07-14T13:55:57.423 に答える