i just have installed Ruby on my Linux (OpenSuse 11.3) box.
then i wanted to run a code - which needs to have Mechanize
how can i install this!?
Install rubygems if you haven’t already; sudo gem install mechanize
should do the rest.
ux:/usr/perl # ruby myCode.rb
Feeling especially brave? Running new code as root while learning
a language could cause some, er, interesting side-effects
Thx for the hints: See what i got:
suse-linux:~ # sudo gem install mechanize
Building native extensions. This could take a while…
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for libxml/parser.h… yes
checking for libxslt/xslt.h… no
*** 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.
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
suse-linux:~ #