2006-11-22(水) 晴のち曇 安静時心拍数 63 [長年日記]
_ WWW::Mechanizeのinstall
portsを作ったとしてもcommitされるのに少々時間が掛かるのでgemでインストールしてみました。
# gem install mechanize Attempting local installation of 'mechanize' Local gem file not found: mechanize*.gem Attempting remote installation of 'mechanize' Updating Gem source index for: http://gems.rubyforge.org Install required dependency hpricot? [Yn] Y Select which gem to install for your platform (i386-freebsd5) 1. hpricot 0.4 (ruby) 2. hpricot 0.4 (mswin32) 3. Cancel installation > 1 Building native extensions. This could take a while... ruby extconf.rb install mechanize checking for main() in -lc... yes creating Makefile make cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd5 -I. -fPIC -O -pipe -fPIC -c hpricot_scan.c cc -shared -Wl,-soname,hpricot_scan.so -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o hpricot_scan.so hpricot_scan.o -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -L. -lruby18 -lc -lcrypt -lm -pthread -lc make install /usr/bin/install -c -o root -g wheel -m 0755 hpricot_scan.so /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.4/lib Successfully installed mechanize-0.6.3 Successfully installed hpricot-0.4 Installing RDoc documentation for mechanize-0.6.3...
簡単ですね。