0
/usr/bin/gcc-4.2 -dynamic -bundle -o ../../.ext/x86_64-darwin11.3.0/tcltklib.bundle
stubs.o tcltklib.o -L. -L../.. -L/Users/jasonvdm/.rvm/usr/lib -  L/System/Library/Frameworks/Tcl.framework -L/System/Library/Frameworks/Tk.framework -L. -L/usr/local/lib   -lpthread -framework CoreFoundation  -F/System/Library/Frameworks -framework Tcl    -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit   -lpthread -framework CoreFoundation  -F/System/Library/Frameworks -framework Tk -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace  -lruby.1.9.1 -lm -ldl  -lpthread -ldl -lobjc 
ld: in /usr/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not      the architecture being linked (x86_64) for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/x86_64-darwin11.3.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1

我收到了一个错误:

Error running 'make', please read /Users/jasonvdm/.rvm/log/ruby-1.9.2-p320/make.log
There has been an error while running make. Halting the installation.

这与 p180 相同。我已经安装了 readline 和所有东西。我正在尝试安装 1.9.3,但出现类似错误。我尝试使用 clang 和 readline 标志安装,没有任何效果。

看来这是我的主要错误:

ld: in /usr/local/lib/libxslt.1.dylib, file was built for unsupported file format which
is not the architecture being linked (x86_64) for architecture x86_64
4

1 回答 1

0

你在使用 OSX 吗?
您可以尝试使用:

rvm install ruby-1.9.2-p320 --with-gcc=clang

或者:

CC=/usr/local/bin/gcc-4.2 rvm install ruby-1.9.2-p320
于 2012-06-18T21:11:51.657 回答