加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 20:51:27 所属栏目:百科 来源:网络整理
导读:在尝试安装时 '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,包括dev
在尝试安装时
'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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读