【发布时间】: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