我正在尝试为 Rails 项目执行“捆绑安装”。但我被打动了
Installing debugger (1.5.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.
c:/jruby-1.7.4/bin/jruby.exe extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=tru
e to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at c:/jruby-1.7.4/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1054
(root) at c:/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at extconf.rb:15
Gem files will remain installed in c:/jruby-1.7.4/lib/ruby/gems/shared/gems/debu
gger-1.5.0 for inspection.
Results logged to c:/jruby-1.7.4/lib/ruby/gems/shared/gems/debugger-1.5.0/ext/ru
by_debug/gem_make.out
An error occurred while installing debugger (1.5.0), and Bundler cannot
continue.
Make sure that `gem install debugger -v '1.5.0'` succeeds before bundling.
然后我尝试了
$ gem install debugger -v '1.5.0'
WARNING: RubyGems 1.2+ index not found for:
RubyGems will revert to legacy indexes degrading performance.
Updating metadata for 1 gems from http://rubygems.org/
.
complete
ERROR: While executing gem ... (Errno::EACCES)
Access to the path 'c:\Program Files\IronRuby 1.1\Lib\ruby\gems\1.9.1\source
_cache' is denied.
所有 gem 均已正确安装,但 gem 调试器 (1.5.0) 的 gem 安装停止
我的宝石环境是:
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i386-mswin32]
- INSTALLATION DIRECTORY: c:/Program Files/IronRuby 1.1/Lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: "c:/Program Files/IronRuby 1.1/bin/ir.exe"
- EXECUTABLE DIRECTORY: c:/Program Files/IronRuby 1.1/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-dotnet-4.0
- GEM PATHS:
- c:/Program Files/IronRuby 1.1/Lib/ruby/gems/1.9.1
- c:/Users/swapnil/.gem/ironruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
提前致谢。