Forum: Ruby Problem while using scrubyt

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ae892857ffe43c228ded68975816dc2a?d=identicon&s=25 Prabhas Gupte (prabhas)
on 2008-10-08 06:25
(Received via mailing list)
Hi, I am trying to use scrubyt for web scraping. But I get error right
in the beginning when I 'require' the 'scrubyt' gem. I am using Ruby
version 1.8.6 on Windows.

My sample code is like this:
-------
require 'rubygems'
require 'scrubyt'

google_data = Scrubyt::Extractor.define do
fetch 'http://www.google.com/ncr'
fill_textfield 'q', 'ruby'
submit

link "Ruby Programming Language" do
url "href", :type => :attribute
end
next_page "Next", :limit => 2
end

puts google_data.to_xml
-------
I have all the required gems installed with proper version numbers.
The list is as follows:

*** LOCAL GEMS ***
fxri (0.3.6)
fxruby (1.6.16)
hoe (1.7.0)
hpricot (0.6)
log4r (1.0.5)
mechanize (0.8.3)
ParseTree (1.7.1)
ParseTreeReloaded (0.0.1)
ptools (1.1.6)
rake (0.8.2)
ruby-opengl (0.60.0)
ruby2ruby (1.1.6)
rubyforge (1.0.0)
RubyInline (3.6.3)
RubyInlineAcceleration (0.0.1)
scrapi (1.2.0)
scrubyt (0.3.4)
simplecrawler (0.1.4)
test-unit (2.0.0)
tidy (1.1.2)
win32-api (1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)


When I run this program, I get following error message:
>ruby scrubyt_test1.rb

C:/Ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:386:in
``': No such file or directory - cl -nologo -LD   -MD -Zi -O2b2xg- -G6
-I C:/Ruby/lib/ruby/1.8/i386-mswin32 -I C:/Ruby/include -o "C:/
Documents and Settings/PGupte/.ruby_inline/Inline_ParseTree_2c97.so"
"C:/Documents and Settings/PGupte/.ruby_inline/
Inline_ParseTree_2c97.c"  -link /LIBPATH:"C:/Ruby/lib" /
DEFAULTLIB:"msvcrt-ruby18.lib" /INCREMENTAL:no /
EXPORT:Init_Inline_ParseTree_2c97 (Errno::ENOENT)
  from C:/Ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:
386:in `build'
  from C:/Ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:
660:in `inline'
  from C:/Ruby/lib/ruby/gems/1.8/gems/ParseTreeReloaded-0.0.1/lib/
parse_tree_reloaded.rb:21
  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
  from C:/Ruby/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt.rb:12
  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
  from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
  from scrubyt_test1.rb:2

>Exit code: 1

Please help me out of this. What is the remedy for this?
This topic is locked and can not be replied to.