hpricot
- URL
- http://code.whytheluckystiff.net/hpricot/
- Author(s)
- why the lucky stiff
- Summary
- a swift, liberal HTML parser with a fantastic library
Comments
hpricot
(ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32])
is Failing
for Xaviour Maxwell (Windows, 7 months ago)
C:\>gem install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.C:/ruby191/bin/ruby.exe extconf.rb
checking for stdio.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/ruby191/bin/ruby
C:/ruby191/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:431:in `try_cpp'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:809:in `block in have_header'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postp
one'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
from C:/ruby191/lib/ruby/1.9.1/mkmf.rb:808:in `have_header'
from extconf.rb:2:in `<main>'Gem files will remain installed in C:/ruby191/lib/ruby/gems/1.9.1/gems/hpricot-0
.8.2 for inspection.
Results logged to C:/ruby191/lib/ruby/gems/1.9.1/gems/hpricot-0.8.2/ext/fast_xs/
gem_make.outC:\>
hpricot
(0.8.2)
is Working
for Valentin Mihov (Mac OSX, 7 months ago)
I am using ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0] installed with homebrew
Works great!
hpricot
(0.8.1)
is Working
for Peter Wagenet (Mac OSX, 12 months ago)
hpricot
(0.8.1)
is Failing
for vtypal (Windows, about 1 year ago)
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lc... no
creating Makefilemake
'make' is not recognized as an internal or external command,
operable program or batch file.
hpricot
( hpricot-0.8.1 )
is Working
for Dave (GNU/Linux, about 1 year ago)
centos 5.3
found workaround (?) at http://www.cherpec.com/2009/06/hpricot-081-on-ruby-185/
hpricot
is Failing
for Dave (GNU/Linux, about 1 year ago)
same as John back in May?
sudo gem install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension./usr/bin/ruby extconf.rb install hpricot
checking for main() in -lc... yes
creating Makefilemake
gcc -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
hpricot_css.rl: In function ‘hpricot_css’:
hpricot_css.rl:106: warning: implicit declaration of function ‘RSTRING_PTR’
hpricot_css.rl:106: warning: assignment makes pointer from integer without a cast
hpricot_css.rl:107: warning: implicit declaration of function ‘RSTRING_LEN’
hpricot_css.rl:82: warning: field precision should have type ‘int’, but argument 5 has type ‘long int’
hpricot_css.c:3399: warning: comparison between pointer and integer
hpricot_css.c:3399: warning: ‘eof’ is used uninitialized in this function
hpricot_css.rl:92: warning: ‘aps’ may be used uninitialized in this function
gcc -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
hpricot_scan.rl: In function ‘our_rb_hash_lookup’:
hpricot_scan.rl:169: warning: implicit declaration of function ‘st_lookup’
hpricot_scan.rl: In function ‘make_hpricot_struct’:
hpricot_scan.rl:693: warning: implicit declaration of function ‘RARRAY_PTR’
hpricot_scan.rl:693: error: subscripted value is neither array nor pointer
make: *** [hpricot_scan.o] Error 1Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out
[tburns@cod ~]$ cat /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out
/usr/bin/ruby extconf.rb install hpricot
checking for main() in -lc... yes
creating Makefilemake
gcc -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
hpricot_css.rl: In function ‘hpricot_css’:
hpricot_css.rl:106: warning: implicit declaration of function ‘RSTRING_PTR’
hpricot_css.rl:106: warning: assignment makes pointer from integer without a cast
hpricot_css.rl:107: warning: implicit declaration of function ‘RSTRING_LEN’
hpricot_css.rl:82: warning: field precision should have type ‘int’, but argument 5 has type ‘long int’
hpricot_css.c:3399: warning: comparison between pointer and integer
hpricot_css.c:3399: warning: ‘eof’ is used uninitialized in this function
hpricot_css.rl:92: warning: ‘aps’ may be used uninitialized in this function
gcc -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
hpricot_scan.rl: In function ‘our_rb_hash_lookup’:
hpricot_scan.rl:169: warning: implicit declaration of function ‘st_lookup’
hpricot_scan.rl: In function ‘make_hpricot_struct’:
hpricot_scan.rl:693: warning: implicit declaration of function ‘RARRAY_PTR’
hpricot_scan.rl:693: error: subscripted value is neither array nor pointer
make: *** [hpricot_scan.o] Error 1Not sure how to figure out what version it is since it never installed. Aug3
hpricot
(0.8.1)
is Working
for roger (Windows, about 1 year ago)
compiles and trivial tests work for me
hpricot
(1.9.1p0)
is Failing
for Patrick Glandien (Windows, about 1 year ago)
Requires msvcrt-ruby18.dll (even under ruby 1.9) and still does not work with it.
gem install why-hpricot --source=http://gems.github.com
should work, gives problems when ruby is not self-compiled though
hpricot
(0.8.1)
is Working
for Gordon Thiesfeld (Windows, about 1 year ago)
Installed Ruby 1.9.1 and Dev Kit from:
http://rubyinstaller.org/downloads/gem install hpricot
hpricot
(0.8.1)
is Working
for Evil Trout (Mac OSX, about 1 year ago)
hpricot
(0.6.164)
is Working
for Brandon Huey (Mac OSX, about 1 year ago)
Installs as gem and works on OS X 10.5.7
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.6.0]
hpricot
(0.8.1)
is Failing
for John (GNU/Linux, about 1 year ago)
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:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.ruby extconf.rb install hpricot --include-dependencies
checking for main() in -lc... yes
creating Makefilemake
gcc -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
hpricot_scan.rl: In function ‘our_rb_hash_lookup’:
hpricot_scan.rl:169: warning: implicit declaration of function ‘st_lookup’
hpricot_scan.rl: In function ‘make_hpricot_struct’:
hpricot_scan.rl:693: warning: implicit declaration of function ‘RARRAY_PTR’
hpricot_scan.rl:693: error: subscripted value is neither array nor pointer
make: *** [hpricot_scan.o] Error 1Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/ext/hpricot_scan/gem_make.out
**************************
It 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:
#define RARRAY_PTR(arr) RARRAY(arr)->ptrIt 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.
hpricot
(0.8.1)
is Working
for Patrick Reagan (Mac OSX, about 1 year ago)
hpricot
(0.8.1)
is Failing
for Ian Dees (Windows, about 1 year ago)
Error dialog about missing msvcrt-ruby18.dll.
hpricot
(why-hpricot)
is Working
for Cyril David (Mac OSX, about 1 year ago)
hpricot
(0.7)
is Working
for Andre Lewis (Mac OSX, about 1 year ago)
gem install why-hpricot --source http://gems.github.com
hpricot
(0.7)
is Failing
for Ryan Grove (Mac OSX, about 1 year ago)
Despite the claim of 1.9.1 "friendliness" in the changelog, the 0.7 release gem on RubyForge fails to compile:
$ sudo gem1.9 install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension./opt/local/bin/ruby1.9 extconf.rb install hpricot
checking for main() in -lc... yes
creating Makefilemake
/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
hpricot_css.c: In function ‘hpricot_css’:
hpricot_css.c:3399: warning: comparison between pointer and integer
hpricot_css.c:3399: warning: ‘eof’ is used uninitialized in this function
hpricot_css.rl:92: warning: ‘aps’ may be used uninitialized in this function
/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
hpricot_scan.rl: In function ‘our_rb_hash_lookup’:
hpricot_scan.rl:162: error: ‘struct RHash’ has no member named ‘tbl’
make: *** [hpricot_scan.o] Error 1
hpricot
is Working
for Gregory (Mac OSX, about 1 year ago)
@Peter Cooper,
It seems like RubyGems doesn't cleanly roll back failed installs. If you clear out the gem manually, then install why-hpricot, it works.
hpricot
(0.6.210)
is Working
for Clint Bishop (Mac OSX, about 1 year ago)
Installs with why-hpricot version
hpricot
(0.6.164)
is Failing
for km (Windows, about 1 year ago)
>irb -r hpricot
can't find msvcrt-ruby18.dll
C:/ruby19/lib/ruby/gems/1.9.1/gems/hpricot-0.6.164-x86-mswin32/lib/hpricot.rb:20:in `require':LoadError: 126: The specif
ied module could not be found. - C:/ruby19/lib/ruby/gems/1.9.1/gems/hpricot-0.6.164-x86-mswin32/lib/hpricot_scan.so
hpricot
(0.6.164)
is Failing
for Thomas Preymesser (GNU/Linux, about 1 year ago)
hpricot
(0.6.164))
is Failing
for from_kyushu (Mac OSX, about 1 year ago)
/opt/local/bin/ruby1.9 extconf.rb install hpricot
checking for stdio.h... yes
creating Makefile
make
/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
fast_xs.c: In function ‘fast_xs’:
fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:170: error: ‘struct RArray’ has no member named ‘len’
fast_xs.c:175: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:176: error: ‘struct RArray’ has no member named ‘len’
make: *** [fast_xs.o] Error 1
hpricot
(0.6.207)
is Working
for Yaroslav Markin (Mac OSX, about 1 year ago)
Works for me when installed as why-hpricot
hpricot
(0.6.164)
is Working
for Konstantin Haase (GNU/Linux, about 1 year ago)
Install script for fixed version: http://gist.github.com/58071
hpricot
(0.6.201)
is Failing
for Eugene Pimenov (Mac OSX, about 1 year ago)
It needs force_encoding to ascii-8bit before Hpricot.scan. The current version doesn't work with UTF-8
Try yourself
LC_ALL=en_US.UTF-8 rake19
you'll see a sigsegvPatch something like that: http://gist.github.com/59086
hpricot
(0.7)
is Working
for Jeremy Kemper (Mac OSX, about 1 year ago)
gem install why-hpricot --source http://gems.github.com
hpricot
(0.9.198)
is Working
for Jai-Gouk Kim (GNU/Linux, about 1 year ago)
Ubuntu 8.1, x86, installed from github.
hpricot
(0.6.164)
is Failing
for postmodern (GNU/Linux, about 1 year ago)
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
fast_xs.c: In function ‘fast_xs’:
fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:170: error: ‘struct RArray’ has no member named ‘len’
fast_xs.c:175: error: ‘struct RArray’ has no member named ‘ptr’
fast_xs.c:176: error: ‘struct RArray’ has no member named ‘len’
make: *** [fast_xs.o] Error 1
hpricot
(0.6.171)
is Working
for Jeremy Kemper (Mac OSX, about 1 year ago)
fast_xs has been fixed: http://github.com/why/hpricot/commit/2cf87f4
hpricot
(0.6.164)
is Working
for Ryan Neufeld (Mac OSX, about 1 year ago)
Fails to install on building fast_xs.c
hpricot
(0.6.164)
is Failing
for Rahoul Baruah (Mac OSX, about 1 year ago)
Installs but tests won't run

hpricot (0.8.2) is Working
for Charles Roper (Windows, 6 months ago)