Since Mechanize can use either Nokogiri or Hpricot as a backend, it
seems like a good idea if neither were an actual dependency.
Actually, IMO they should both be alternative dependencies. Which, of
course, RubyGems doesn't support. But since Marc doesn't use RubyGems,
it should work fine.
sh-3.2# gem19 install hpricot --source http://code.whytheluckystiff.net
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.
checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I/usr/local/include/ruby19-1.9.1/i386-darwin9.6.0 -I/usr/
local/include/ruby19-1.9.1/ruby/backward -I/usr/local/include/
ruby19-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -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
gcc -I. -I/usr/local/include/ruby19-1.9.1/i386-darwin9.6.0 -I/usr/
local/include/ruby19-1.9.1/ruby/backward -I/usr/local/include/
ruby19-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -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
Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/
hpricot-0.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/hpricot-0.7/ext/
hpricot_scan/gem_make.out
Have you checked if latest hpricot version is 1.9 compatible ? May be it is not...
···
le 21/03/2009 21:39, Hiro nous a dit:
An error when I try to install hpircot :
sh-3.2# gem19 install hpricot --source http://code.whytheluckystiff.net
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby19 extconf.rb install hpricot --source http://code.whytheluckystiff.net
checking for main() in -lc... yes
creating Makefile
sh-3.2# gem19 install hpricot --source http://code.whytheluckystiff.net
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
Have you checked if latest hpricot version is 1.9 compatible ? May be it is not...
I got the exact same result, with Ubuntu's out-of-the-box Ruby 1.9.0...