Ruby(2.0.0-p451)Bundle Install - atomic(1.1.10) - OS 10.6.8

时间:2014-08-06 08:55:00

标签: ruby-on-rails ruby xcode atomic bundle-install

你好

我正在尝试在我的Mac上安装Ruby,但我无法通过Bundle Install。

我真的很感谢你的帮助,因为我的程序员合作伙伴因为试图让这台机器为我工作而感到沮丧,而我只是设计师试图容纳我们的小团队。

的信息:

- ruby​​ 2.0.0p451(2014-02-24修订版45167)[x86_64-darwin10.8.0]

- iMac OSX 10.6.8 | Xcode 3.2.6(1761)

- 原子(1.1.10)的捆绑安装错误

$ bundle install

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/.rbenv/versions/2.0.0-p451/bin/ruby extconf.rb
/.rbenv/versions/2.0.0-p451/bin/ruby: invalid switch in RUBYOPT: -c (RuntimeError)

Gem files will remain installed in /vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10 for inspection.
Results logged to /vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10/ext/gem_make.out

An error occurred while installing atomic (1.1.10), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.10'` succeeds before bundling.

我们这样做......

$ gem install atomic -v '1.1.10'

Successfully installed atomic-1.1.10
Parsing documentation for atomic-1.1.10
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/atomic_reference.bundle, skipping
1 gem installed

我读到升级到rdoc-4.0.1有助于......

$ gem install rdoc -v 4.0.1
Fetching: rdoc-4.0.1.gem (100%)
rdoc's executable "rdoc" conflicts with /.rbenv/versions/2.0.0-p451/bin/rdoc

Overwrite the executable? [yN]  

覆盖可执行文件?听起来很可怕,但我会去... ...

Overwrite the executable? [yN]  y
rdoc's executable "ri" conflicts with /.rbenv/versions/2.0.0-p451/bin/ri
Overwrite the executable? [yN]  y
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed rdoc-4.0.1
Parsing documentation for rdoc-4.0.1
Installing ri documentation for rdoc-4.0.1
1 gem installed

希望有所帮助。再试一次原子......

$ gem install atomic -v '1.1.10'

Building native extensions.  This could take a while...
Successfully installed atomic-1.1.10
Parsing documentation for atomic-1.1.10
Done installing documentation for atomic after 0 seconds
1 gem installed

成功?安装Bundle ...

$ bundle install

Fetching source index from https://rubygems.org/
Using rake 10.1.0
Using i18n 0.6.4
Using minitest 4.7.5
Using multi_json 1.7.7

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/ryannagle/.rbenv/versions/2.0.0-p451/bin/ruby extconf.rb 
/Users/ryannagle/.rbenv/versions/2.0.0-p451/bin/ruby: invalid switch in RUBYOPT: -c (RuntimeError)


Gem files will remain installed in .../vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10 for inspection.
Results logged to .../vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10/ext/gem_make.out
An error occurred while installing atomic (1.1.10), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.10'` succeeds before bundling. 

$ gem install atomic -v'1.1.10'每次都运行良好。但是Bundle Install中的错误。

所以我已尝试使用$ bundle install --without“”但我没有成功。我非常感谢你的建议。我的规格是这篇文章的顶部。

感谢您的帮助

额外信息:

- gem_make.out内容(2个位于不同位置)

/vendor/bundle/ruby/2.0.0/extensions/x86_64-darwin-10/2.0.0/atomic-1.1.10/gem_make.out

../.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb 
../.rvm/rubies/ruby-2.0.0-p481/bin/ruby: invalid switch in RUBYOPT: -c (RuntimeError)

extconf failed, exit code 1

/vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10/ext/gem_make.out

../.rbenv/versions/2.0.0-p451/bin/ruby extconf.rb 
../.rbenv/versions/2.0.0-p451/bin/ruby: invalid switch in RUBYOPT: -c (RuntimeError)

0 个答案:

没有答案