ruby-on-rails – 无法构建gem native扩展 – 找不到extconf.rb

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 无法构建gem native扩展 – 找不到extconf.rb前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在尝试安装时
'bcrypt-ruby',:lib => 'bcrypt'

'hpricot'

我在两种情况下都得到了这个(使用Windows XP)

C:/Ruby/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)

我从这里安装了http://rubyinstaller.org/downloads/ Rb 1.8.6,包括devkit

任何提示?,谢谢

解决方法

现在 RubyInstaller Wiki中有一个条目可以解决这个潜在的问题:

Using a command prompt,invoke the
following commands:

06000

Execute each line individually. Once
you run it,will see something like
this:

06001

The columns of information are Key,
Type and Value. If you see a key named
AutoRun,there is a chance this is the
culprit of the error you’re receiving.
AutoRun interferes with Ruby messing
with child process executing and by
result,affecting gem installation.
Please remove it with the following
command:

06002

Once you’re done,try opening a new command prompt and executing gem installation again.

原文链接:https://www.f2er.com/ruby/274212.html

猜你在找的Ruby相关文章