在 Yosemite 上安装 Ruby 1.9.2 时出错 [英] Error installing Ruby 1.9.2 on Yosemite

查看:75
本文介绍了在 Yosemite 上安装 Ruby 1.9.2 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Yosemite 上使用 rvm 安装 ruby​​ 1.9.2 时出现错误.有人可以帮助我吗?我更新了自制软件和 rvm.我正在和其他人一起做这个项目,所以我无法升级 ruby​​.我在下面放了一个链接到我的输出.提前致谢!

I'm getting an error when installing ruby 1.9.2 with rvm on Yosemite. Could someone help me? I updated homebrew and rvm. I'm working with someone else on this project so I can't upgrade ruby. I put a link to my output below. Thanks ahead of time!

Kanyons-MacBook-Pro:~ USERNAME$ rvm install 1.9.2-head
ruby-1.9.2-head - #removing src/ruby-1.9.2-head..
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/USERNAME/.rvm/rubies/ruby-1.9.2-head, this may take a while depending on your cpu(s)...
HEAD is now at 5d9f08f bump patchlevel
From git://github.com/ruby/ruby
 * branch            ruby_1_9_2 -> FETCH_HEAD
Current branch ruby_1_9_2 is up to date.
Copying from repo to src path...
ruby-1.9.2-head - #applying patch /Users/USERNAME/.rvm/patches/ruby/1.9.2/head/r42282.patch.
ruby-1.9.2-head - #applying patch /Users/USERNAME/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.9.2-head - #autoreconf.
ruby-1.9.2-head - #configuring..........................................
ruby-1.9.2-head - #post-configuration.
ruby-1.9.2-head - #compiling..................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/USERNAME/.rvm/log/1413513694_ruby-1.9.2-head/make.log
generating newline.c ...
converter for universal_newline
converter for crlf_newline
converter for cr_newline
done.  (0.06user 0.00system 0.01elapsed)
/usr/local/opt/apple-gcc42/bin/gcc-4.2 -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I.        -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -o newline.o -c newline.c
couldn't understand kern.osversion `14.0.0'
/usr/local/opt/apple-gcc42/bin/gcc-4.2 -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -o dmyext.o -c dmyext.c
couldn't understand kern.osversion `14.0.0'
/usr/local/opt/apple-gcc42/bin/gcc-4.2 -O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -fno-common -pipe -L. -L/usr/local/opt/readline/lib         -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -Wl,-u,_objc_msgSend   main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o  dmyext.o -lpthread -ldl -lobjc  -o miniruby
couldn't understand kern.osversion `14.0.0'
miniruby(65084,0x7fff7bed0300) malloc: *** error for object 0x100801a08: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
make: *** [.rbconfig.time] Abort trap: 6
++ return 2
There has been an error while running make. Halting the installation.

推荐答案

对于任何试图在 Yosemite 上安装 ruby​​ 1.9.2 的人来说,没有修复.我安装了 1.9.3,效果很好.

For anyone who is trying to install ruby 1.9.2 on Yosemite, there is no fix. I installed 1.9.3 and it works great.

有关为什么 1.9.2 无法正确编译的更多信息,请使用下面 Github 上的错误报告.

For more information on why 1.9.2 won't compile correctly, use the bug reports on Github below.

https://github.com/wayneeseguin/rvm/issues/3096#issuecomment-59797969https://github.com/wayneeseguin/rvm/issues/3099#issuecomment-60187208

这篇关于在 Yosemite 上安装 Ruby 1.9.2 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆