2

让蓝布在窗户上工作有点噩梦。我从网站上抢了宝石(因为gem install bluecloth不起作用)。但是,我似乎无法加载库

irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'bluecloth'
LoadError: no such file to load -- bluecloth_ext
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/bluecloth-2.0.5-x86-mingw32/lib/bluecloth.rb:156
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from (irb):2
irb(main):003:0>

有什么想法/建议吗?(除了不要使用windows =P)

4

2 回答 2

3

来自http://groups.google.com/group/rubyinstaller/browse_thread/thread/59f3812381a195b5/adb40d04eabefe14?lnk=gst&q=bluecloth#adb40d04eabefe14

C:\>gem install bluecloth --platform=ruby 
Building native extensions.  This could take a while... 
Successfully installed bluecloth-2.0.5 
1 gem installed 
C:\>irb -rubygems 
irb(main):001:0> require 'bluecloth' 
=> true 
于 2010-01-05T20:15:32.190 回答
1

我最终使用 ruby​​installer.org 而不是一键式安装程序和 devkit 插件。这使您可以在 Windows 上构建本机扩展,而不会令人头疼。然后我从网站上获得了 .gem(不是 mingw32 版本),并无缝安装了 gem。

于 2009-09-21T19:43:39.133 回答