Hello,I met some problems during installation. I cannot find 'xmlErrorPtr' defined in the C headers. So I got the error:ruby_xml_error.h:11: error: expected ')' before 'xerror'. Does anybody know why this is happened? Or my settings goes wrong? Thanks a lot. By the way, I also use gcc version 4.3.2 (GCC) and got the same error message. My enviroment: gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)
ruby setup.rb ---> lib ---> lib/libxml <--- lib/libxml ---> lib/xml <--- lib/xml <--- lib ---> ext ---> ext/libxml /dataCentral/ruby/bin/ruby /data0/dataCentral/tmp/libxml-ruby-0.9.7/ext/libxml/extconf.rb setup.rb:655: warning: Insecure world writable dir /data0/dataCentral/tmp/libxml-ruby-0.9.7/ext/libxml/./ in PATH, mode 040777 checking for socket() in -lsocket... no checking for gethostbyname() in -lnsl... yes checking for atan() in -lm... no checking for atan() in -lm... yes checking for inflate() in -lz... yes checking for iconv_open() in -liconv... no checking for libiconv_open() in -liconv... no checking for libiconv_open() in -llibiconv... no checking for iconv_open() in -llibiconv... no checking for iconv_open() in -lc... yes checking for xmlParseDoc() in -lxml2... yes checking for libxml/xmlversion.h... no checking for #include <libxml/xmlversion.h> ... yes checking for xmlDocFormatDump()... yes checking for docbCreateFileParserCtxt()... yes creating extconf.h creating Makefile <--- ext/libxml ---> ext/mingw <--- ext/mingw ---> ext/vc <--- ext/vc <--- ext ---> lib ---> lib/libxml <--- lib/libxml ---> lib/xml <--- lib/xml <--- lib ---> ext ---> ext/libxml make gcc -I. -I. -I/dataCentral/ruby/lib/ruby/1.8/i686-linux -I/data0/dataCentral/tmp/libxml-ruby-0.9.7/ext/libxml -I/usr/include/libxml2 -I/usr/local/include -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -I. -I/dataCentral/ruby/lib/ruby/1.8/i686-linux -I/data0/dataCentral/tmp/libxml-ruby-0.9.7/ext/libxml -I/usr/include/libxml2 -I/usr/local/include -c cbg.c In file included from ruby_libxml.h:63, from cbg.c:1: ruby_xml_error.h:11: error: expected ')' before 'xerror' ruby_xml_error.h:12: error: expected ')' before 'xerror' make: *** [cbg.o] Error 1 setup.rb:655:in `command': system("make") failed (RuntimeError) from setup.rb:664:in `make' from setup.rb:1258:in `setup_dir_ext' from setup.rb:1532:in `__send__' from setup.rb:1532:in `traverse' from setup.rb:1549:in `dive_into' from setup.rb:1530:in `traverse' from setup.rb:1534:in `traverse' from setup.rb:1533:in `each' ... 7 levels... from setup.rb:996:in `exec_setup' from setup.rb:813:in `invoke' from setup.rb:773:in `invoke' from setup.rb:1578
_______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel