tags:

views:

41

answers:

1

I am using Ruby 1.9.2 and i have an assignment to use hpricot. I have tried to install hpricot gem and I get error messages. extconf.rb failed. Could not create makefile. Check the mkmf.log. But I cannot find mkmf.log.

I checked the other answers and tried to install using gem install hpricot-platform=mswin32. that didnt work either.

Should I reinstall Ruby version 1.8?

A: 

Is hpricot required? Nokogiri should work for you, and IIRC, it has a compatibility layer so that it can act as a drop-in replacement for hpricot if needed.

ehsanul
It is for an assignment. The professor wants us to use hpricot. I checked the link on devkit and installed that. Now hpricot seems to work - but I get an incompatible character encodings error : UTF-8 and ASCII- 8BIT. Am I still missing something? Thanks for the help.
What exactly are you doing when you get the error? Do you know how Ruby 1.9.2 handles character encodings? Here's a link, you can google for more info if you need: http://blog.grayproductions.net/articles/ruby_19s_string
ehsanul