【问题标题】:n error occurred while installing atomic (1.1.14), and Bundler cannot continuen 安装 atomic (1.1.14) 时出错,Bundler 无法继续
【发布时间】:2014-04-17 05:36:06
【问题描述】:

根据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.

【问题讨论】:

标签: ruby-on-rails ruby rvm bundler


【解决方案1】:

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

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

rm -rf ~/.rvm

然后尝试“捆绑安装”命令。然后就成功了!!!

【讨论】:

    【解决方案2】:

    将 ruby​​ 从 1.9 更新到 2.1 成功了。

    【讨论】:

      猜你喜欢
      • 2016-03-14
      • 2022-01-20
      • 2017-02-09
      • 2018-09-08
      • 2020-01-16
      • 2021-06-25
      • 2014-01-12
      • 2018-04-05
      • 2020-05-07
      相关资源
      最近更新 更多