0

我正在尝试使用带有sudo rvm install 1.9.3 --universal命令的 rvm 构建 32 位/64 位版本的 ruby​​。

失败了,日志文件如下:

linking shared-object tcltklib.bundle
ld: in /usr/local/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (i386) for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../.ext/universal-darwin11.4.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2

消息说 libxml 是用 64 位构建的,但使用它的 tcltk 是 32 位的。可能有什么问题?如何解决这个问题?

4

1 回答 1

1

您是否尝试过使用此标志--without-tk --without-tcl...当然,如果您不需要tk

其他解决方案是也使用 --universal 重新编译所有库,但这可能是一项繁琐的工作。

于 2012-09-05T16:47:44.373 回答