我安装了MacRuby (通过rvm):
$ ruby -v
MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]和LLVM (通过自制):
$ llvmc --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.9
Optimized build.
Built Jun 3 2011 (10:06:35).
Host: x86_64-apple-darwin10
Host CPU: corei7
Registered Targets:
(none)当我运行rake时,我会发现一个错误:
$ rake
(in /Users/briankierstead/dev/kci/macruby/hourz)
ld: warning: in /Library/Frameworks//MacRuby.framework/MacRuby, file was built for
unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_macruby_main", referenced from:
_main in ccvGpB6J.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/qm/qm1gYJL6Fa4uPhnq239pak+++TI/-Tmp-//ccS18qN4.out (No such file or directory)我不想运行xcode4,它允许您指定x86_64作为输出。
我怎样才能解决这个问题?它看起来像是链中的某个地方,32位正在被指定。我尝试使用标志进行编译,并将rake运行为:
env UNIVERSAL=1 UNIVERSAL_ARCH="x86_64" ENABLE_OPTIMIZED=1和
RC_ARCHS=x86_64 rake但这些都不起作用。我也会犯同样的错误。
我是雪豹- 10.6.7。
发布于 2011-06-03 17:01:53
使用这个存储库的热可可可以解决这个问题。发布的版本已经过时,忽略了体系结构。
不太理想,但至少在出版的版本赶上之前,它还能工作。
谢谢@watson1978 1978
这起作用了,但导致了另一个错误: LSOpenURLsWithRole()在错误-10810中失败
我不得不安装BridgeSupport,然后一切都很好。
https://stackoverflow.com/questions/6229314
复制相似问题