IRB can't require "nokogiri"

34 views
Skip to first unread message

Love U Ruby

unread,
May 29, 2013, 7:02:48 AM5/29/13
to rubyonra...@googlegroups.com
Not able to require "nokogiri":


C:\Documents and Settings>gem list --local

*** LOCAL GEMS ***

addressable (2.3.2)
bigdecimal (1.1.0)
builder (3.1.4)
bundler (1.2.3)
childprocess (0.3.6)
domain_name (0.5.7)
ffi (1.3.1 x86-mingw32)
git (1.2.5)
hoe (3.4.1)
httpclient (2.3.2)
io-console (0.3)
jar_wrapper (0.1.2)
jeweler (1.8.4)
json (1.5.4)
libwebsocket (0.1.7.1)
mechanize (2.5.1)
mechanize-downloader (0.0.1)
mime-types (1.19)
mini_magick (3.2.1)
minitest (2.5.1)
multi_json (1.5.0)
net-http-digest_auth (1.2.1)
net-http-persistent (2.8)
nokogiri (1.5.6 x86-mingw32)
ntlm-http (0.1.1)
progressbar (0.12.0)
rake (0.9.2.2)
rautomation (0.7.3)
rdoc (3.9.4)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium (0.2.5)
selenium-webdriver (2.30.0, 2.27.2)
subexec (0.0.4)
unf (0.0.5)
unf_ext (0.0.5 x86-mingw32)
user-choices (1.1.6.1)
watir-classic (3.4.0)
watir-webdriver (0.6.2)
webrobots (0.0.13)
websocket (1.0.6)
win32-api (1.4.8 x86-mingw32)
win32-process (0.7.1)
win32screenshot (1.0.7)
windows-api (0.4.2)
windows-pr (1.2.2)
xml-simple (1.1.2)
zip (2.0.2)

C:\Documents and Settings>irb
irb(main):001:0> require "nokogiri"
LoadError: cannot load such file -- nokogiri
from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
from (irb):1
from C:/Ruby193/bin/irb:12:in `<main>'
irb(main):002:0>

--
Posted via http://www.ruby-forum.com/.

Peter Hickman

unread,
May 29, 2013, 7:09:03 AM5/29/13
to rubyonra...@googlegroups.com
Can you require any of the others?

Have you run

require 'rubygems'

first?
Please put a little more effort into this

Love U Ruby

unread,
May 29, 2013, 7:14:24 AM5/29/13
to rubyonra...@googlegroups.com
Peter Hickman wrote in post #1110491:
C:\>irb --simple-prompt
>> require "selenium-webdriver"
=> true
>> require "watir-webdriver"
=> true
>> require "nokogiri"
LoadError: cannot load such file -- nokogiri
from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
from (irb):4
from C:/Ruby193/bin/irb:12:in `<main>'
>>

Greg Akins

unread,
May 29, 2013, 7:24:42 AM5/29/13
to rubyonra...@googlegroups.com
Just a hunch.. can you require any of the gems with mingw32 dependencies?


Greg Akins
Insomnia Consulting, LLC
gak...@insomnia-consulting.org
724 454 7790 (cell)
http://www.linkedin.com/company/2942338?trk=tyah
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/449e8cb81f8694415f52fe0177a21b99%40ruby-forum.com?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Love U Ruby

unread,
May 29, 2013, 7:38:13 AM5/29/13
to rubyonra...@googlegroups.com
Greg Akins wrote in post #1110493:
> Just a hunch.. can you require any of the gems with mingw32
> dependencies?
>
>
> Greg Akins
> Insomnia Consulting, LLC
> gak...@insomnia-consulting.org
> 724 454 7790 (cell)
> http://www.linkedin.com/company/2942338?trk=tyah


Sorry! I didn't get you.

Greg Akins

unread,
May 29, 2013, 8:19:48 AM5/29/13
to rubyonra...@googlegroups.com
nokogiri (1.5.6 x86-mingw32)
ffi (1.3.1 x86-mingw32)

Notice how they both have mingw32 in the version. They're built on
operating system specific libraries. In Windows, they need mingw32 to
build.

Wondering if the require problem you're having is related to mingw32
instead of just Nokogiri.
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c1c2b21732585316c6e918bfcd9218a4%40ruby-forum.com?hl=en-US.

Love U Ruby

unread,
May 30, 2013, 4:47:56 AM5/30/13
to rubyonra...@googlegroups.com
Greg Akins wrote in post #1110501:
> nokogiri (1.5.6 x86-mingw32)
> ffi (1.3.1 x86-mingw32)
>
> Notice how they both have mingw32 in the version. They're built on
> operating system specific libraries. In Windows, they need mingw32 to
> build.
>
> Wondering if the require problem you're having is related to mingw32
> instead of just Nokogiri.

Still I am having the same issue. Any advice to resolve the same?
Reply all
Reply to author
Forward
0 new messages