ruby 1.9をインスコしたのですが,mechanizeでこけます。 対策教えて下さい。 ruby 1.9はMacOS 10.3 PPC G3です。 $ ./configure --prefix=/opt/local --program-suffix=19 checking build system type... powerpc-apple-darwin7.9.0 checking host system type... powerpc-apple-darwin7.9.0 checking target system type... powerpc-apple-darwin7.9.0 checking for gcc... gcc
$ sudo gem19 install mechanize Password: Building native extensions. This could take a while... ERROR: Error installing mechanize: ERROR: Failed to build gem native extension.
/opt/local/bin/ruby19 extconf.rb install mechanize checking for main() in -lc... yes creating Makefile
make gcc -I. -I/opt/local/include/ruby-1.9.0/powerpc-darwin7.9.0 -I/opt/local/include/ruby-1.9.0 -I. -fno-common -g -O2 -pipe -fno-common -o hpricot_scan.o -c hpricot_scan.c ext/hpricot_scan/hpricot_scan.rl: In function `hpricot_scan': ext/hpricot_scan/hpricot_scan.rl:172: error: structure has no member named `ptr' ext/hpricot_scan/hpricot_scan.rl:185: error: structure has no member named `ptr' ext/hpricot_scan/hpricot_scan.rl:185: error: structure has no member named `len' ext/hpricot_scan/hpricot_scan.rl:186: error: structure has no member named `len' ext/hpricot_scan/hpricot_scan.rl:202: error: structure has no member named `ptr' make: *** [hpricot_scan.o] Error 1
Gem files will remain installed in /opt/local/lib/ruby/gems/1.9.0/gems/hpricot-0.6 for inspection. Results logged to /opt/local/lib/ruby/gems/1.9.0/gems/hpricot-0.6/ext/hpricot_scan/gem_make.out