2014-03-28 10 views
0

rails new "app" 명령을 실행했을 때 번들 오류가 발생한 후 원자 보석을 설치하려고했습니다. OS X 10.9.2를 실행 중입니다. 나는 또한 xcode-select --install 명령을 시도했다. 여기 내 결과가 있습니다.보석 원자 설치 중 오류가 발생했습니다

> sudo gem install atomic -v '1.1.16' 
Building native extensions. This could take a while... 
ERROR: Error installing atomic: 
    ERROR: Failed to build gem native extension. 

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
checking for libkern/OSAtomic.h... yes 
creating Makefile 

make "DESTDIR=" clean 

make "DESTDIR=" 
compiling atomic_reference.c 
atomic_reference.c:57:59: warning: incompatible pointer types passing 'void **' to parameter of type 'volatile int64_t *' (aka 'volatile long long *') [-Wincompatible-pointer-types] 
    if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) { 
                  ^~~~~~~~~~~~~~~ 
/usr/include/libkern/OSAtomic.h:507:93: note: passing argument to parameter '__theValue' here 
bool OSAtomicCompareAndSwap64(int64_t __oldValue, int64_t __newValue, volatile int64_t *__theValue); 
                          ^
1 warning generated. 
linking shared-object atomic_reference.bundle 
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future] 
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future 
make: *** [atomic_reference.bundle] Error 1 

make failed, exit code 2 

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/atomic-1.1.16 for inspection. 
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/atomic-1.1.16/gem_make.out 
+0

'JDK8 '이 설치되어 있습니까? – Nerve

+0

아니요 JDK8이 없습니다. – CPride

+0

[Ruby Gem install Json이 Mavericks 및 Xcode 5.1에서 실패 할 수 있음 - 알 수없는 인수 : '-multiply \ _definedsuppress'] (http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on -mavericks-and-xcode-5-1-unknown-argument-mul) – Nakilon

답변

0

atomic 1.1.16 설치의 경우, JDK8이 시스템에 설치되어 있어야합니다. 그것은 전제 조건입니다.

그러나 그 이후에는 필요하지 않습니다. 그냥 보석을 설치합니다.

gem을 실행하려면 JDK6 이상이 필요합니다.

관련 문제