2013-02-25 12 views
7

Đang cố gắng để cài đặt nó với RVM tôi nhận được lỗi sau:của Ruby 2.0.0 RVM không biên soạn OS X 10.8.2 Mountain Lion

> [2013-02-25 10:09:24] make CC = /usr/local/bin/gcc-4.2  LD = ld 
> LDSHARED = /usr/local/bin/gcc-4.2 -dynamic -bundle CFLAGS = -O3 
> -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 
> -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/curl-ca-bundle/include -I/usr/local/opt/sqlite/include -I. -I.ext/include/x86_64-darwin12.2.0 -I./include -I. DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/curl-ca-bundle/lib -L/usr/local/opt/sqlite/lib -fstack-protector -Wl,-u,_objc_msgSend  SOLIBS = linking miniruby ld: warning: directory not found for option 
> '-L/usr/local/opt/curl-ca-bundle/lib' 
> /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111: [BUG] Stack 
> consistency error (sp: 38, bp: 36) ruby 2.0.0p0 (2013-02-24 revision 
> 39474) [x86_64-darwin12.2.0] 
> 
> -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: 
>  * ~/Library/Logs/CrashReporter 
>  * /Library/Logs/CrashReporter 
>  * ~/Library/Logs/DiagnosticReports 
>  * /Library/Logs/DiagnosticReports the more detail of. 
> 
> -- Control frame information ----------------------------------------------- c:0006 p:0038 s:0038 e:000037 CLASS /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111 
> c:0005 p:0035 s:0034 e:000033 CLASS 
> /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:107 c:0004 p:0009 
> s:0032 e:000031 TOP 
> /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:85 [FINISH] c:0003 
> p:---- s:0030 e:000029 CFUNC :require c:0002 p:0098 s:0026 E:001f68 
> EVAL ./tool/mkconfig.rb:11 [FINISH] c:0001 p:0000 s:0002 E:001848 
> TOP [FINISH] 
> 
> ./tool/mkconfig.rb:11:in `<main>' ./tool/mkconfig.rb:11:in `require' 
> /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:85:in `<top 
> (required)>' /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:107:in 
> `<module:FileUtils>' 
> /Users/ale/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111:in 
> `<module:NoWrite>' 
> 
> -- C level backtrace information ------------------------------------------- 0 miniruby       0x0000000108465e24 rb_vm_bugreport + 164 1 miniruby     
> 0x000000010833d95e report_bug + 302 2 miniruby      
> 0x000000010833dc14 rb_bug + 180 3 miniruby       
> 0x000000010845bea0 vm_exec_core + 32080 4 miniruby     
> 0x000000010845c07e vm_exec + 94 5 miniruby       
> 0x000000010845cf5a rb_iseq_eval + 266 6 miniruby      
> 0x0000000108342572 rb_load_internal + 306 7 miniruby     
> 0x0000000108343cc1 rb_require_safe + 1313 8 miniruby     
> 0x000000010844bc54 call_cfunc_1 + 20 9 miniruby      
> 0x0000000108452126 vm_call_cfunc + 1046 10 miniruby     
> 0x0000000108460ce0 vm_call_method + 224 11 miniruby     
> 0x0000000108457363 vm_exec_core + 12819 12 miniruby     
> 0x000000010845c07e vm_exec + 94 13 miniruby       
> 0x000000010845ce2e rb_iseq_eval_main + 206 14 miniruby    
> 0x0000000108340cdf ruby_exec_internal + 111 15 miniruby    
> 0x0000000108341cc2 ruby_run_node + 82 16 miniruby      
> 0x00000001083080af main + 79 17 libdyld.dylib      
> 0x00007fff8ae7b7e1 start + 0 18 ???         
> 0x0000000000000009 0x0 + 9 
> 
> -- Other runtime information ----------------------------------------------- 
> 
> * Loaded script: ./tool/mkconfig.rb 
> 
> * Loaded features: 
> 
>  0 enumerator.so 
> 
> [NOTE] You may have encountered a bug in the Ruby interpreter or 
> extension libraries. Bug reports are welcome. For details: 
> http://www.ruby-lang.org/bugreport.html 
> 
> make: *** [.rbconfig.time] Abort trap: 6 

Có làm việc cho bất cứ ai khác?

+1

Cùng một vấn đề ở đây, với một số trợ giúp: http: // stackoverflow.com/questions/15055457/error-while-installation-ruby2-with-rvm – Casper

+0

Lần sau, vui lòng sử dụng "mẫu mã" thay vì "blockquote" cho đầu ra của máy tính. –

+0

Sao chép, Andrew. – aledalgrande

Trả lời

3

rvm get head sau 5 giờ chiều giờ Luân Đôn đã giải quyết được sự cố. Đoán Wayne đã chiến đấu với nó!

Ran rvm reinstall 2.0.0.

Vẫn nhận được find: -printf: unknown primary or operator khi cài đặt rubygems, nhưng phần còn lại hoạt động.

+0

Làm việc cho tôi. Không còn lỗi nữa. – Peterdk

6

bạn đã thử với CC = clang Tôi đã cài đặt trên 10.7 mà không có bất kỳ sự cố nào chỉ một phút trước.

+0

Chỉ cần thử và nó không thành công trên rubygems thời gian này: 'Cài đặt rubygems-2.0.0 cho ruby-2.0.0-p0 ... Lỗi khi chạy 'env GEM_PATH =/Người dùng/ale/.rvm/gems/ruby-2.0. 0-p0: /Users/ale/.rvm/gems/[email protected]: /Users/ale/.rvm/gems/ruby-2.0.0-p0: /Users/ale/.rvm/ gems/[email protected] GEM_HOME =/Người dùng/ale/.rvm/gems/ruby-2.0.0-p0 /Users/ale/.rvm/rubies/ruby-2.0.0-p0/bin/ ruby /Users/ale/.rvm/src/rubygems-2.0.0/setup.rb ', vui lòng đọc /Users/ale/.rvm/log/ruby-2.0.0-p0/rubygems.install.log Cài đặt rubygems không hoàn thành thành công. tìm: -printf: unknown primary hoặc operator' – aledalgrande

+0

CC = clang làm việc cho tôi cũng như thế này: 'CC = clang rvm cài đặt lại ruby-2.0.0' –

1

Cài đặt thành công tại đây.

Sau khi loại bỏ biến CC của tôi (được trỏ đến gcc-4.2) từ .bash_profile và làm RVM được đầu & & yêu cầu RVM & & RVM cài đặt lại 2.0.0

Nhưng tôi nhận được rubygems cài đặt lỗi.

Làm một số thử nghiệm dường như không phải là vấn đề. gem install works nice

0

Tôi hơi muộn ở đây nhưng có cùng vấn đề. Tôi đã cài đặt RVM và Ruby 2.0 bằng lệnh sau và nhận được lỗi tương tự.

curl -L https://get.rvm.io | bash -s stable --ruby

Hãy chắc chắn để khởi động lại Terminal và sau đó chạy rvm get head

Làm việc ở đây.

0

Điều này được cố định trong đầu ruby ​​2.0. Xem liên kết đến vấn đề cụ thể bên dưới. Để thay thế cho việc kéo đầu, bạn cũng khắc phục vấn đề xây dựng bằng cách áp dụng bản vá đơn giản được mô tả trong vấn đề.

https://bugs.ruby-lang.org/issues/8171

0

Dưới đây là những gì tôi đã làm điều đó làm việc cho tôi khi "RVM cài đặt 2.0.0" thất bại.

Đảm bảo rằng bạn đã cài đặt Xcode mới nhất từ ​​App Store.

sau đó tôi lấy ra RVM với

rvm implode 

Và RVM sau đó cài đặt lại (xem rvm.io) với

curl -L https://get.rvm.io | bash -s stable 

Sau đó, tôi đã làm một

rvm install 2.0.0 

mà làm việc.