・Error details
An error that the xmlParseDoc function in libxml/parser.h is undefined.
An error that the declaration of xmlParseDoc is conflicting.
・What I have tried
Modified environment variables: Added /opt/freeware/lib to LD_LIBRARY_PATH.
Modified extconf.rb file: Explicitly specified the path to the libxml2 header file and library.
・Environment
libxml2 version: libxml2-2.10.4-1.ppc and libxml2-devel-2.10.4-1.ppc
libxml2 installation path: /opt/freeware/include/libxml2/libxml/parser.h
Environment variables: LD_LIBRARY_PATH includes /opt/freeware/lib
# (omitted)
# 1. xmlParseDoc の検出と条件付き宣言
xml_parse_doc_check = <<-SRC
#include <libxml/parser.h>
extern "C" {
void xmlParseDoc(const xmlChar *cur);
}
int main() {
xmlDocPtr doc = xmlParseDoc((const xmlChar*)"test");
return (doc == NULL);
}
SRC
if try_link(xml_parse_doc_check, "-I/opt/freeware/include/libxml2 -L/opt/freeware/lib -lxml2")
$defs << "-DHAVE_XML_PARSE_DOC"
else
abort 'xmlParseDoc() is missing'
end
# (omitted)
・Additional information
I have already downloaded the source code with gem fetch nokogiri.
The error is not resolved even after running ruby extconf.rb, make, and make install.
・Question
The error is not resolved even after making the above modifications. Is there any solution to install nokogiri in AIX 7.3 environment?
------------------------------
Tomoyuki Takahashi
------------------------------