[{"comment": {"name": "Charles Roper", "machine_platform": {"name": "Windows"}, "works_for_me": true, "body": "With RubyInstaller and DevKit:\r\n\r\n[ C:\\Users\\charlesr ]\r\n> ruby -v\r\nruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]\r\n\r\n[ C:\\Users\\charlesr ]\r\n> gem install hpricot\r\nBuilding native extensions.  This could take a while...\r\nSuccessfully installed hpricot-0.8.2\r\n1 gem installed\r\n\r\nRubyInstaller: http://rubyinstaller.org/\r\nDevKit: http://wiki.github.com/oneclick/rubyinstaller/development-kit", "url": "http://twitter.com/charlesroper", "version": "0.8.2"}}, {"comment": {"name": "Xaviour Maxwell", "machine_platform": {"name": "Windows"}, "works_for_me": false, "body": "\r\n\r\nC:\\>gem install hpricot\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing hpricot:\r\n        ERROR: Failed to build gem native extension.\r\n\r\nC:/ruby191/bin/ruby.exe extconf.rb\r\nchecking for stdio.h... *** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of\r\nnecessary libraries and/or headers.  Check the mkmf.log file for more\r\ndetails.  You may need configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --without-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=C:/ruby191/bin/ruby\r\nC:/ruby191/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to genera\r\nte an executable file. (RuntimeError)\r\nYou have to install development tools first.\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:431:in `try_cpp'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:809:in `block in have_header'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postp\r\none'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'\r\n        from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:808:in `have_header'\r\n        from extconf.rb:2:in `<main>'\r\n\r\n\r\nGem files will remain installed in C:/ruby191/lib/ruby/gems/1.9.1/gems/hpricot-0\r\n.8.2 for inspection.\r\nResults logged to C:/ruby191/lib/ruby/gems/1.9.1/gems/hpricot-0.8.2/ext/fast_xs/\r\ngem_make.out\r\n\r\nC:\\>\r\n", "url": "", "version": "ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]"}}, {"comment": {"name": "Valentin Mihov", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "I am using ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0] installed with homebrew\r\n\r\nWorks great!", "url": "http://www.valentinmihov.com", "version": "0.8.2"}}, {"comment": {"name": "Chip Miller", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "gem install loads without issue", "url": "", "version": "0.8.1"}}, {"comment": {"name": "Andryusha", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "", "url": "http://andryusha.com", "version": "0.8.1"}}, {"comment": {"name": "Peter Wagenet", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "", "url": "http://in.finitu.de", "version": "0.8.1"}}, {"comment": {"name": "vtypal", "machine_platform": {"name": "Windows"}, "works_for_me": false, "body": "ERROR:  Error installing hpricot:\r\n        ERROR: Failed to build gem native extension.\r\n\r\nC:/Ruby19/bin/ruby.exe extconf.rb\r\nchecking for main() in -lc... no\r\ncreating Makefile\r\n\r\nmake\r\n'make' is not recognized as an internal or external command,\r\noperable program or batch file.", "url": "http://www.superuser.gr", "version": "0.8.1"}}, {"comment": {"name": "Dave", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": true, "body": "centos 5.3 \r\nfound workaround (?) at http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/", "url": "", "version": " hpricot-0.8.1 "}}, {"comment": {"name": "Dave", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": false, "body": "same as John back in May? \r\n\r\nsudo gem install hpricot\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing hpricot:\r\n        ERROR: Failed to build gem native extension.\r\n\r\n/usr/bin/ruby extconf.rb install hpricot\r\nchecking for main() in -lc... yes\r\ncreating Makefile\r\n\r\nmake\r\ngcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing  -fPIC  -c hpricot_css.c\r\nhpricot_css.rl: In function \u2018hpricot_css\u2019:\r\nhpricot_css.rl:106: warning: implicit declaration of function \u2018RSTRING_PTR\u2019\r\nhpricot_css.rl:106: warning: assignment makes pointer from integer without a cast\r\nhpricot_css.rl:107: warning: implicit declaration of function \u2018RSTRING_LEN\u2019\r\nhpricot_css.rl:82: warning: field precision should have type \u2018int\u2019, but argument 5 has type \u2018long int\u2019\r\nhpricot_css.c:3399: warning: comparison between pointer and integer\r\nhpricot_css.c:3399: warning: \u2018eof\u2019 is used uninitialized in this function\r\nhpricot_css.rl:92: warning: \u2018aps\u2019 may be used uninitialized in this function\r\ngcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing  -fPIC  -c hpricot_scan.c\r\nhpricot_scan.rl: In function \u2018our_rb_hash_lookup\u2019:\r\nhpricot_scan.rl:169: warning: implicit declaration of function \u2018st_lookup\u2019\r\nhpricot_scan.rl: In function \u2018make_hpricot_struct\u2019:\r\nhpricot_scan.rl:693: warning: implicit declaration of function \u2018RARRAY_PTR\u2019\r\nhpricot_scan.rl:693: error: subscripted value is neither array nor pointer\r\nmake: *** [hpricot_scan.o] Error 1\r\n\r\n\r\nGem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1 for inspection.\r\nResults logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out\r\n[tburns@cod ~]$ cat /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out\r\n/usr/bin/ruby extconf.rb install hpricot\r\nchecking for main() in -lc... yes\r\ncreating Makefile\r\n\r\nmake\r\ngcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing  -fPIC  -c hpricot_css.c\r\nhpricot_css.rl: In function \u2018hpricot_css\u2019:\r\nhpricot_css.rl:106: warning: implicit declaration of function \u2018RSTRING_PTR\u2019\r\nhpricot_css.rl:106: warning: assignment makes pointer from integer without a cast\r\nhpricot_css.rl:107: warning: implicit declaration of function \u2018RSTRING_LEN\u2019\r\nhpricot_css.rl:82: warning: field precision should have type \u2018int\u2019, but argument 5 has type \u2018long int\u2019\r\nhpricot_css.c:3399: warning: comparison between pointer and integer\r\nhpricot_css.c:3399: warning: \u2018eof\u2019 is used uninitialized in this function\r\nhpricot_css.rl:92: warning: \u2018aps\u2019 may be used uninitialized in this function\r\ngcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing  -fPIC  -c hpricot_scan.c\r\nhpricot_scan.rl: In function \u2018our_rb_hash_lookup\u2019:\r\nhpricot_scan.rl:169: warning: implicit declaration of function \u2018st_lookup\u2019\r\nhpricot_scan.rl: In function \u2018make_hpricot_struct\u2019:\r\nhpricot_scan.rl:693: warning: implicit declaration of function \u2018RARRAY_PTR\u2019\r\nhpricot_scan.rl:693: error: subscripted value is neither array nor pointer\r\nmake: *** [hpricot_scan.o] Error 1\r\n\r\n\r\nNot sure how to figure out what version it is since it never installed. Aug3", "url": "", "version": ""}}, {"comment": {"name": "roger", "machine_platform": {"name": "Windows"}, "works_for_me": true, "body": "compiles and trivial tests work for me", "url": "http://allgems.ruby-forum.com", "version": "0.8.1"}}, {"comment": {"name": "Patrick Glandien", "machine_platform": {"name": "Windows"}, "works_for_me": false, "body": "Requires msvcrt-ruby18.dll (even under ruby 1.9) and still does not work with it.\r\ngem install why-hpricot --source=http://gems.github.com\r\nshould work, gives problems when ruby is not self-compiled though", "url": "http://nytemarez.com", "version": "1.9.1p0"}}, {"comment": {"name": "Gordon Thiesfeld", "machine_platform": {"name": "Windows"}, "works_for_me": true, "body": "Installed Ruby 1.9.1 and Dev Kit from:\r\nhttp://rubyinstaller.org/downloads/\r\n\r\ngem install hpricot", "url": "", "version": "0.8.1"}}, {"comment": {"name": "Evil Trout", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "", "url": "http://www.forumwarz.com", "version": "0.8.1"}}, {"comment": {"name": "Brandon Huey", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "Installs as gem and works on OS X 10.5.7\r\n\r\nruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.6.0]\r\n \r\n", "url": "", "version": "0.6.164"}}, {"comment": {"name": "John", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": false, "body": "I am trying to install hpricot on a linux server (kernel 2.6.18-128.1.1.el5), an x86_64.  When I do \"sudo gem install hpricot --include-dependencies\", I get this error:\r\n\r\nBuilding native extensions.  This could take a while...\r\nERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)\r\n    ERROR: Failed to build gem native extension.\r\n\r\nruby extconf.rb install hpricot --include-dependencies\r\nchecking for main() in -lc... yes\r\ncreating Makefile\r\n\r\nmake\r\ngcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.  -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing  -fPIC  -c hpricot_scan.c\r\nhpricot_scan.rl: In function \u2018our_rb_hash_lookup\u2019:\r\nhpricot_scan.rl:169: warning: implicit declaration of function \u2018st_lookup\u2019\r\nhpricot_scan.rl: In function \u2018make_hpricot_struct\u2019:\r\nhpricot_scan.rl:693: warning: implicit declaration of function \u2018RARRAY_PTR\u2019\r\nhpricot_scan.rl:693: error: subscripted value is neither array nor pointer\r\nmake: *** [hpricot_scan.o] Error 1\r\n\r\nGem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1 for inspection.\r\nResults logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out\r\n**************************\r\nIt looked as if there was a bug in hpricot_scan.rl, since I didn't see the definition for RARRAY_PTR.  So, I looked at gems/hpricot-0.8.1/ext/fast_xs/fast_xs.c, and the RARRAY_PTR definition is there:\r\n#define RARRAY_PTR(arr)  RARRAY(arr)->ptr\r\n\r\nIt seems to me (as a naive user) that hpricot can't see fast_xs.c.  Is it out of order in the make file?  Any help deeply appreciated, as I am trying to start my rails project on production and hpricot is a critical component.  I'm too inexperienced to try to tweak the makefile myself.", "url": "givealink.org", "version": "0.8.1"}}, {"comment": {"name": "Patrick Reagan", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "", "url": "http://sneaq.net", "version": "0.8.1"}}, {"comment": {"name": "Ian Dees", "machine_platform": {"name": "Windows"}, "works_for_me": false, "body": "Error dialog about missing msvcrt-ruby18.dll.", "url": "http://www.ian.dees.name", "version": "0.8.1"}}, {"comment": {"name": "Cyril David", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "", "url": "", "version": "why-hpricot"}}, {"comment": {"name": "from_kyushu", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "install successful", "url": "http://iddy.jp/profile/from_kyushu", "version": "0.8.1"}}, {"comment": {"name": "Andre Lewis", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "gem install why-hpricot --source http://gems.github.com", "url": "http://earthcode.com", "version": "0.7"}}, {"comment": {"name": "Ryan Grove", "machine_platform": {"name": "Mac OSX"}, "works_for_me": false, "body": "Despite the claim of 1.9.1 \"friendliness\" in the changelog, the 0.7 release gem on RubyForge fails to compile:\r\n\r\n$ sudo gem1.9 install hpricot\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing hpricot:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n/opt/local/bin/ruby1.9 extconf.rb install hpricot\r\nchecking for main() in -lc... yes\r\ncreating Makefile\r\n\r\nmake\r\n/usr/bin/gcc-4.0 -I. -I/opt/local/include/ruby1.9-1.9.1/i386-darwin9 -I/opt/local/include/ruby1.9-1.9.1/ruby/backward -I/opt/local/include/ruby1.9-1.9.1 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O2 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o hpricot_css.o -c hpricot_css.c\r\nhpricot_css.c: In function \u2018hpricot_css\u2019:\r\nhpricot_css.c:3399: warning: comparison between pointer and integer\r\nhpricot_css.c:3399: warning: \u2018eof\u2019 is used uninitialized in this function\r\nhpricot_css.rl:92: warning: \u2018aps\u2019 may be used uninitialized in this function\r\n/usr/bin/gcc-4.0 -I. -I/opt/local/include/ruby1.9-1.9.1/i386-darwin9 -I/opt/local/include/ruby1.9-1.9.1/ruby/backward -I/opt/local/include/ruby1.9-1.9.1 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O2 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o hpricot_scan.o -c hpricot_scan.c\r\nhpricot_scan.rl: In function \u2018our_rb_hash_lookup\u2019:\r\nhpricot_scan.rl:162: error: \u2018struct RHash\u2019 has no member named \u2018tbl\u2019\r\nmake: *** [hpricot_scan.o] Error 1", "url": "http://wonko.com/", "version": "0.7"}}, {"comment": {"name": "Gregory", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "@Peter Cooper,\r\n\r\nIt seems like RubyGems doesn't cleanly roll back failed installs.  If you clear out the gem manually, then install why-hpricot, it works. ", "url": "http://majesticseacreature.com", "version": ""}}, {"comment": {"name": "Clint Bishop", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "Installs with why-hpricot version", "url": "", "version": "0.6.210"}}, {"comment": {"name": "km", "machine_platform": {"name": "Windows"}, "works_for_me": false, "body": ">irb -r hpricot\r\n\r\ncan't find msvcrt-ruby18.dll\r\n\r\nC:/ruby19/lib/ruby/gems/1.9.1/gems/hpricot-0.6.164-x86-mswin32/lib/hpricot.rb:20:in `require':LoadError: 126: The specif\r\nied module could not be found.   - C:/ruby19/lib/ruby/gems/1.9.1/gems/hpricot-0.6.164-x86-mswin32/lib/hpricot_scan.so\r\n", "url": "http://40hourworkweek.blogspot.com/", "version": "0.6.164"}}, {"comment": {"name": "Thomas Preymesser", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": false, "body": "", "url": "http://thopre.wordpress.com/", "version": "0.6.164"}}, {"comment": {"name": "from_kyushu", "machine_platform": {"name": "Mac OSX"}, "works_for_me": false, "body": "/opt/local/bin/ruby1.9 extconf.rb install hpricot\r\nchecking for stdio.h... yes\r\ncreating Makefile\r\nmake\r\n/usr/bin/gcc-4.0 -I. -I/opt/local/include/ruby1.9-1.9.1/i386-darwin9 -I/opt/local/include/ruby1.9-1.9.1/ruby/backward -I/opt/local/include/ruby1.9-1.9.1 -I. -DHAVE_STDIO_H -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O2 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o fast_xs.o -c fast_xs.c\r\nfast_xs.c: In function \u2018fast_xs\u2019:\r\nfast_xs.c:169: error: \u2018struct RArray\u2019 has no member named \u2018ptr\u2019\r\nfast_xs.c:170: error: \u2018struct RArray\u2019 has no member named \u2018len\u2019\r\nfast_xs.c:175: error: \u2018struct RArray\u2019 has no member named \u2018ptr\u2019\r\nfast_xs.c:176: error: \u2018struct RArray\u2019 has no member named \u2018len\u2019\r\nmake: *** [fast_xs.o] Error 1", "url": "http://iddy.jp/profile/from_kyushu", "version": "0.6.164)"}}, {"comment": {"name": "Yaroslav Markin", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "Works for me when installed as why-hpricot", "url": "github.com/yaroslav", "version": "0.6.207"}}, {"comment": {"name": "Dylan Clendenin", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "working great.", "url": "", "version": "0.6.27"}}, {"comment": {"name": "Konstantin Haase", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": true, "body": "Install script for fixed version: http://gist.github.com/58071", "url": "", "version": "0.6.164"}}, {"comment": {"name": "Eugene Pimenov", "machine_platform": {"name": "Mac OSX"}, "works_for_me": false, "body": "It needs force_encoding to ascii-8bit before Hpricot.scan. The current version doesn't work with UTF-8\r\n\r\nTry yourself\r\nLC_ALL=en_US.UTF-8 rake19\r\nyou'll see a sigsegv\r\n\r\nPatch something like that: http://gist.github.com/59086\r\n", "url": "", "version": "0.6.201"}}, {"comment": {"name": "Jeremy Kemper", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "gem install why-hpricot --source http://gems.github.com", "url": "http://bitsweat.net/", "version": "0.7"}}, {"comment": {"name": "Jai-Gouk Kim", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": true, "body": "Ubuntu 8.1, x86, installed from github.", "url": "http://jaigouk.blogspot.com", "version": "0.9.198"}}, {"comment": {"name": "postmodern", "machine_platform": {"name": "GNU/Linux"}, "works_for_me": false, "body": "gcc -I. -I/usr/include/ruby19-1.9.1/x86_64-linux -I/usr/include/ruby19-1.9.1/ruby/backward -I/usr/include/ruby19-1.9.1 -I. -DHAVE_STDIO_H    -fPIC  -O2 -g -Wall -Wno-parentheses  -fPIC  -o fast_xs.o -c fast_xs.c\r\nfast_xs.c: In function \u2018fast_xs\u2019:\r\nfast_xs.c:169: error: \u2018struct RArray\u2019 has no member named \u2018ptr\u2019\r\nfast_xs.c:170: error: \u2018struct RArray\u2019 has no member named \u2018len\u2019\r\nfast_xs.c:175: error: \u2018struct RArray\u2019 has no member named \u2018ptr\u2019\r\nfast_xs.c:176: error: \u2018struct RArray\u2019 has no member named \u2018len\u2019\r\nmake: *** [fast_xs.o] Error 1\r\n", "url": "http://houseofpostmodern.wordpress.com/", "version": "0.6.164"}}, {"comment": {"name": "Jeremy Kemper", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "fast_xs has been fixed: http://github.com/why/hpricot/commit/2cf87f4", "url": "http://bitsweat.net/", "version": "0.6.171"}}, {"comment": {"name": "Ryan Neufeld", "machine_platform": {"name": "Mac OSX"}, "works_for_me": true, "body": "Fails to install on building fast_xs.c", "url": "", "version": "0.6.164"}}, {"comment": {"name": "Rahoul Baruah", "machine_platform": {"name": "Mac OSX"}, "works_for_me": false, "body": "Installs but tests won't run", "url": "http://www.brightbox.co.uk", "version": "0.6.164"}}]
