I’ve installed FlexMock using gems just fine in cygwin, so what’s wrong?
I think the trick is that in FlexMock’s case, you did not have to
compile anything - but this doesn’t hold for Hpricot. You need a C
compiler. Unfortunately I have no idea how to get that on cygwin, but it
shouldn’t be that complicated.
Feng,
Check your Cygwin installation and make sure you have gcc installed.
It’s
under compilers or something like that. It seems that the line that’s
throwing the error is
make gcc: Command not found
I have a somewhat limited experience with Ruby, Windows XP and Cygwin
but I
remember that a gem installed from the Windows command line will work in
Cygwin too (at least it’s present when I issue a gem list)
===
/usr/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/builder.rb:11:
warning: `&’ interpreted as argument prefix
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_pointer_type not initialized
(eval):2: warning: instance variable @is_pointer_type not initialized
(eval):2: warning: instance variable @is_pointer_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_pointer_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
(eval):2: warning: instance variable @is_simple_type not initialized
/cygdrive/c/Documents and Settings/pood is insecure (40770). It may not
be group or world writable. Exiting.
and so on…
===
when trying to run this:
===require ‘rubygems’
require ‘scrubyt’
google_data = Scrubyt::Extractor.define do
fetch ‘Google’
fill_textfield ‘q’, ‘ruby’
submit
my Aptana was causing this problem! doing this thru command line, I
don’t get this error.
Great! So welcome to scRUBYt!. Please note that there is a #scrubyt
channel on irc.freenode.net now, and I’ll be usually hanging out there,
so if you need some quick info on how to go on, be sure to drop in!