Can't quite get xmlparser to work. Any ideas?
TIA, Phil
-----
Installing on RH Linux 6.2-ja:
1. downloaded both xmlparser and expat.1.95.1
2. built and installed expat:
$ cd expat-1.95.1
$ ./configure
$ make
$ sudo make install
3. configured and installed xmlparser:
$ ruby extconf.rb --with-xmlparse-lib=/usr/local/lib/libexpat.so
checking for xmlparse.h... no
checking for expat.h... yes
checking for XML_ParserCreate() in -lexpat...yes
checking for XML_SetNotStandaloneHandler()... yes
checking for XML_SetParamEntityParsing()... yes
checking for XML_SetExternalParsedEntityDeclHandler()... no
checking for XML_SetDoctypeDeclHandler()... yes
checking for ntohl() in -lsocket... no
creating Makefile
$ make
$ make site-install
4. fired up irb:
$ irb
irb(main):001:0> require 'xmlparser'
LoadError: libexpat.so.0: cannot open shared object file: No such file or
directory - /usr/local/lib/ruby/site_ruby/1.6/i686-linux/xmlparser.so
/usr/local/lib/ruby/site_ruby/1.6/xmlparser.rb:5:in `require'
/usr/local/lib/ruby/site_ruby/1.6/xmlparser.rb:5
(irb):1:in `require'
(irb):1:in `irb_binding'
irb(main):002:0>
but there is a file xmlparser.so in that directory!
[phil@kawa i686-linux]$ pwd
/usr/local/lib/ruby/site_ruby/1.6/i686-linux
[phil@kawa i686-linux]$ ls -l
total 80
-r-xr-xr-x 1 root root 76559 Mar 22 15:07 xmlparser.so
[phil@kawa i686-linux]$