haxe -lib nme - > /usr/local/bin/libneko.dylib:mach-o,但架构错误

时间:2012-07-27 06:43:47

标签: haxe

我试过安装haxe&在MacOSX 10.7.4中的nme

 brew install haxe
 brew install neko
 haxe -lib nme

但是...

dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /usr/local/bin/haxelib
  Reason: no suitable image found.  Did find:
    /usr/local/bin/libneko.dylib: mach-o, but wrong architecture
    /Users/username/lib/libneko.dylib: stat() failed with errno=20

lipo -info /usr/local/bin/haxelib
Non-fat file: /usr/local/bin/haxelib is architecture: i386
lipo -info /usr/local/bin/libneko.dylib
Non-fat file: /usr/local/bin/libneko.dylib is architecture: x86_64

如何解决问题? 感谢。

1 个答案:

答案 0 :(得分:0)

如果您有64位计算机(您的Mac),但运行32位neko,则可能会出现此错误。 在haxe相关论坛上有similar bug reports

如果您要通过brew安装neko,请确保您的系统上某处隐藏着那些neko libs的其他版本。这可能会导致同样的错误。