简体   繁体   English

为什么在Mac OSX 10.6上使用RVM安装Ruby 1.9.3时会出现“文件不是必需的体系结构”的问题?

[英]Why do I get “file is not of required architecture” installing Ruby 1.9.3 using RVM on Mac OSX 10.6?

I'm trying to install Ruby 1.9.3 on Mac OSX 10.6. 我正在尝试在Mac OSX 10.6上安装Ruby 1.9.3。 I have 10.8.7 installed fine already. 我已经安装好10.8.7。 There are already a bunch of these topics on StackOverflow, but their fixes haven't been working. StackOverflow上已经有很多这样的主题,但是它们的修复没有奏效。 Here's what the terminal prints out: 这是终端显示的内容:

Installing Ruby from source to: /Users/cavan/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching 
ruby-1.9.3-p194 - #extracted to /Users/cavan/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring 
ruby-1.9.3-p194 - #compiling 
Error running 'make ', please read /Users/cavan/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.

And here's the error part of the log it's requesting: 这是它所请求的日志的错误部分:

linking shared-object digest/md5.bundle
compiling rmd160init.c
ld: in /usr/local/lib/libz.1.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[2]: *** [../../../.ext/x86_64-darwin10.7.0/digest/md5.bundle] Error 1
make[1]: *** [ext/digest/md5/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling rmd160ossl.c
installing default rmd160 libraries
linking shared-object digest/rmd160.bundle
ld: in /usr/local/lib/libz.1.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[2]: *** [../../../.ext/x86_64-darwin10.7.0/digest/rmd160.bundle] Error 1
make[1]: *** [ext/digest/rmd160/all] Error 2
make: *** [build-ext] Error 2

I think it has to do with the "file is not of required architecture message." 我认为这与“文件不是必需的体系结构消息”有关。 My computer came with 10.6 and is 64-bit. 我的计算机附带10.6,并且是64位。

您在编译不同的库时遇到问题,在为OSX构建RailsInstaller时,我已经解决了这些问题=> http://railsinstaller.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM