Hi all,

I finally got libxml2 compiled, first I had to do this:

# emerge expat
# emerge python
# cd /usr/portage/dev-lang/python/
# emerge python-2.7.3-r2.ebuild
# cd -

This makes sure that libexpat is there. Now the package is still not compiling 
because of a missing .so file, see this:

# cd /usr/lib/python2.7/xml/parsers/
# ln -sf /usr/lib/python2.7/site-packages/_xmlplus/parsers/pyexpat.so .

If I don't do this a python script in 
/var/tmp/portage/dev-libs/libxml2-2.8.0_rc1/work/libxml2-2.8.0/python-2.7/ 
called generate.py (you have to call this python2.7 ./generate.py) will fail.

Hope this saves someones endless hours.

Regards,
  Roland

PS: There are a lot warnings compiling libxml2, you may want to fix them.

I have used this to build libxml2: (temporary)
USE="-ipv6 readline -debug -doc -examples -icu lzma python -static-libs -test"

Reply via email to