Re: lxml troubles and questions
Sylvain Viollon <[email protected]> Mon, 1 Aug 2011 10:08:42 +0200
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Op 29 jul 2011, om 22:50 heeft Luthiger Stoll Benno het volgende geschreven:
> Hello devs
>
Hello,
> On a Linux box, I've needed to install other then the system's libxml2 and libxslt. I've managed to compile lxml linking to the xml programs I've installed.
>
> Now, if I try to install Silva 2.3 using buildout, the installation stops because the buildout tries to build lxml against the system's xml libraries and, thus, fails.
>
You need to export your PATH in your environment so your installation path is included *before* your
system PATH.
export PATH=/installation/path/bin:${PATH}
If you do:
which xml2-config
It should find a script in your installation path.
After if your installation is a non standard one, I recommend to configure the LD_LIBRARY_PATH as well:
export LD_LIBRARY_PATH=/installation/path/lib
As well even if it should not be needed, I recommand to export those variables as well to start Zope.
Setting them in your shell profile would help it probably.
> How can I advise buildout to use my already installed lxml?
> I've compiled lxml 2.3 while the buildout tries to install lxml 2.2.8. Should I better compile lxml 2.2.8?
> Or can I advise buildout to link against the xml programs I've installed?
>
Silva is not tested against 2.3. According the version number change, it might contains changes that
are not backward compatible, so I would test it first throughly before.
Regards,
--
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands