安装atomic(1.1.14)时发生n错误,Bundler无法继续

时间:2014-04-17 05:36:06

标签: ruby-on-rails ruby rvm bundler

根据this,问题是文件名ruby extconf.rb中的空格。

我正在使用OSX,我最近安装了RVM。我认为这不应该导致任何问题。

但是我不知道如何解决这个问题! = C

± |master ✗| → bundle install --without production
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Using rake 10.1.0
Using i18n 0.6.5
Using minitest 4.7.5
Using multi_json 1.8.2


Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:

    bundle install --path vendor/bundle

to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.

Password:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling atomic_reference.c
atomic_reference.c:53:9: warning: implicit declaration of function 'OSAtomicCompareAndSwap64' is invalid in C99 [-Wimplicit-function-declaration]
    if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) {
        ^
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 /var/folders/d3/y59njq8j3y3f4mwz9gbn4sqc0000gn/T/bundler20140416-27601-fkq14n/atomic-1.1.14/gems/atomic-1.1.14 for inspection.
Results logged to /var/folders/d3/y59njq8j3y3f4mwz9gbn4sqc0000gn/T/bundler20140416-27601-fkq14n/atomic-1.1.14/extensions/universal-darwin-13/2.0.0/atomic-1.1.14/gem_make.out
An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.

2 个答案:

答案 0 :(得分:1)

我花了这么多时间试图解决这个问题......现在我把它修好了!!!! 我做了什么:

我尝试重新安装RVM并输入以下删除命令。

rm -rf~ / .rvm

然后尝试“bundle install”命令。然后它工作!!!

答案 1 :(得分:0)

将ruby从1.9更新到2.1就可以了。

相关问题