更新时间:2023-02-02 21:45:17
好。这个问题来自很久以前。我发现了原因:
ok. this question is from long time ago. i found out why is that:
注意:
$ nm /lib/libxml2.so.2 | grep __xmlStructuredErrorContext
000a99e8 t __xmlStructuredErrorContext
此符号的属性为 t
,它是本地的,不会导出。
this symbol has attribute of t
, which is local, which won't be exported. it happens because the library is tooooooooo old.
但是不幸的是,如果您正在使用 solaris
系统,尝试通过从源代码进行编译来更新 libxml2
,由于编译器或源代码中的错误,它将失败。进一步的参考资料: http://blog.gmane.org/gmane .comp.gnome.lib.xslt / month = 20110201
but unfortunately, if you are working on solaris
system, if you try to update libxml2
by compiling it from source, it will fail, because of bug in either compiler or source. further reference in: http://blog.gmane.org/gmane.comp.gnome.lib.xslt/month=20110201
实际上,安装 lxml $ c有捷径$ c>和使用
openCSW
进行预编译的软件包:
actually there is a short cut to install lxml
with pre-compiled package using openCSW
:
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i python27 py_lxml
它将正常工作。