2
我已經安裝的MacRuby(RVM通過):的MacRuby 0.10 HotCocoa不支持的文件格式被鏈接(I386)
$ 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
(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)
我不要運行的Xcode 4,它允許你指定x86_64作爲輸出。
我該如何解決這個問題?它看起來像鏈中的某個地方,正在指定32位。我試着標誌編譯和運行耙爲:
env UNIVERSAL=1 UNIVERSAL_ARCH="x86_64" ENABLE_OPTIMIZED=1
和
RC_ARCHS=x86_64 rake
但所有這些有差別。我犯了同樣的錯誤。
我在雪豹 - 10.6.7。