Tôi không thể, cho cuộc sống của tôi, chạy thành công "đá quý cài đặt tiết kiệm", điều không thành công khi xây dựng các phần mở rộng bản địa của đá quý; đây là kết quả:Tiết kiệm đá quý Ruby
(acib708) ~ -> gem install thrift
Building native extensions. This could take a while...
ERROR: Error installing thrift:
ERROR: Failed to build gem native extension.
/Users/acib708/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
extconf.rb:25:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:25:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
checking for strlcpy() in string.h... yes
creating Makefile
make "DESTDIR="
compiling binary_protocol_accelerated.c
compiling bytes.c
compiling compact_protocol.c
compiling memory_buffer.c
compiling protocol.c
compiling strlcpy.c
^
(...)
In file included from strlcpy.c:20:
./strlcpy.h:28:15: error: conflicting types for '__builtin___strlcpy_chk'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
./strlcpy.h:28:15: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^
4 errors generated.
make: *** [strlcpy.o] Error 1
Gem files will remain installed in /Users/acib708/.rvm/gems/ruby-2.0.0-p247/gems/thrift-0.9.1 for inspection.
Results logged to /Users/acib708/.rvm/gems/ruby-2.0.0-p247/gems/thrift-0.9.1/ext/gem_make.out
Tôi đã nhìn thấy rất nhiều lỗi tương tự khắp nơi trên web, nhưng tôi đã không tìm thấy giải pháp. Tôi đang chạy OS X 10.9, với cài đặt rvm/ruby-2.0.0-p247 mới. Ý tưởng nào? Cảm ơn.
XCode có được cập nhật không? – Vidya
Có, phiên bản mới nhất. – acib708
@ AlejandroCárdenas Vui lòng chấp nhận một trong các câu trả lời. Những người làm việc chăm chỉ này đã kịp thời giúp bạn, một cú nhấp chuột vào biểu tượng dấu kiểm là tất cả những gì bạn cần, cảm ơn – nhed