要求Nokogiri?没有这样的文件加载 [英] Require Nokogiri? No such file to load
问题描述
我正在尝试使用Nokogiri开始。我运行了命令
gem install nokogiri
$作为Windows 7(64位)的管理员,b
$ b
。控制台说已成功安装和已安装1个宝石。
当我输入
gem list --local或gem q --local
我看到Nokogiri在Local Gems列表中。
但是,当我尝试通过require语句(在NetBeans中)使用它时,出现没有这样的文件加载。
我做错了什么?我不是Ruby专业人士。这也是我安装的第一款宝石。
Netbeans内置jRuby。
您可以指定或检查项目当前在项目属性中使用的最近使用的ruby版本(加亮部分)。
I'm trying to get started with using Nokogiri. I ran the command
gem install nokogiri
as an administrator in Windows 7 (64-Bit). The console said "successfully installed" and "1 gem installed".
When I type in
gem list --local OR gem q --local
I see Nokogiri on the list of "Local Gems".
However, when I try to use it via the require statement (in NetBeans), I get an error that there is "no such file to load".
What am I doing wrong? I'm not a Ruby professional. This is also the first gem I've installed. Please dumb it down for me.
Netbeans comes with built-in jRuby.
You can specify or check wich version of ruby currently used in your project in project's properties (higlighted section).
这篇关于要求Nokogiri?没有这样的文件加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!