Gentoo Archives: gentoo-user

From: "Roland Häder" <r.haeder@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Fix for getting libxml2 compiled!
Date: Wed, 05 Sep 2012 21:45:05
Message-Id: trinity-125bf169-25a6-404f-9364-2b64d110f804-1346881372903@3capp-webde-bs38
1 Hi all,
2
3 I finally got libxml2 compiled, first I had to do this:
4
5 # emerge expat
6 # emerge python
7 # cd /usr/portage/dev-lang/python/
8 # emerge python-2.7.3-r2.ebuild
9 # cd -
10
11 This makes sure that libexpat is there. Now the package is still not compiling because of a missing .so file, see this:
12
13 # cd /usr/lib/python2.7/xml/parsers/
14 # ln -sf /usr/lib/python2.7/site-packages/_xmlplus/parsers/pyexpat.so .
15
16 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.
17
18 Hope this saves someones endless hours.
19
20 Regards,
21 Roland
22
23 PS: There are a lot warnings compiling libxml2, you may want to fix them.
24
25 I have used this to build libxml2: (temporary)
26 USE="-ipv6 readline -debug -doc -examples -icu lzma python -static-libs -test"

Replies

Subject Author
Re: [gentoo-user] Fix for getting libxml2 compiled! Doug Hunley <doug.hunley@×××××.com>