Hi List,<div><br></div><div>I was very excited today to find the lxml module for python. As I need to write some xml checking scripts and finding bash scripting not well suited, I have decided to give python a try. So far I like it. However, here is the situation:</div>
<div><br></div><div>1) The target platform has an older RedHat installation with glibc2.3.4, so none of the binaries for libxml or libxslt were of any use. So I had to build from source on those. Not too painful.</div><div>
2) However, trying to get lxml running has been really difficult. I need help here.</div><div>3) The target machine is not connected to the internet. It is not able to remotely retrieve packages.</div><div><br></div><div>
Questions/Steps:</div><div>0) There don&#39;t appear to be any rpm&#39;s for lxml. Is this correct?</div><div>1) Since I don&#39;t have an internet connection from this machine it means I have to build from source, don&#39;t I (ie easy_install is not an option)?</div>
<div>2) I have assumed that I do have to build from source so I have given it a shot. I copied over the lxml2.2 tar file, unzipped it.</div><div>3) I got <span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">setuptools-0.6c9-py2.3.egg and dropped in that unzipped directly, and ran python ez_setup.py which seemed to go fine.</span></div>
<div>4) Then I ran python setup.py build. The build seemed to go fine.</div><div>5) I go to run test.py and I get this error message:</div><div><br></div><div><div>[]# python test.py</div><div>Traceback (most recent call last):</div>
<div>  File &quot;test.py&quot;, line 595, in ?</div><div>    exitcode = main(sys.argv)</div><div>  File &quot;test.py&quot;, line 558, in main</div><div>    test_cases = get_test_cases(test_files, cfg, tracer=tracer)</div>
<div>  File &quot;test.py&quot;, line 260, in get_test_cases</div><div>    module = import_module(file, cfg, tracer=tracer)</div><div>  File &quot;test.py&quot;, line 203, in import_module</div><div>    mod = __import__(modname)</div>
<div>  File &quot;/home/victorborda/buildstuff/lxml-2.2/src/lxml/html/__init__.py&quot;, line 12, in ?</div><div>    from lxml import etree</div><div>ImportError: /home/victorborda/buildstuff/lxml-2.2/src/lxml/etree.so: undefined symbol: xmlSchematronFree</div>
<div><br></div></div><div>And with that, I tried running &#39;make test&#39; and got the same result. The build appeared to go fine. The contents of </div><div><div>lxml-2.2/build/lib.linux-x86_64-2.3/lxml</div><div><br></div>
</div><div>are:</div><div><div>-rw-r--r--  1 root root    7637 Jun 19  2008 builder.py</div><div>-rw-r--r--  1 root root   28750 Nov 23 19:33 cssselect.py</div><div>-rw-r--r--  1 root root   18287 May 31  2008 doctestcompare.py</div>
<div>-rw-r--r--  1 root root    7641 Jul  9  2008 ElementInclude.py</div><div>-rw-r--r--  1 root root    6407 Feb 27 14:45 _elementpath.py</div><div>-rwxr-xr-x  1 root root 3125362 Apr  3 04:49 etree.so</div><div>drwxr-xr-x  2 root root    4096 Apr  3 04:49 html</div>
<div>-rw-r--r--  1 root root      21 Oct 22  2007 __init__.py</div><div>-rwxr-xr-x  1 root root  846592 Apr  3 04:49 objectify.so</div><div>-rw-r--r--  1 root root      87 Mar  2  2008 pyclasslookup.py</div><div>-rw-r--r--  1 root root    8229 May 31  2008 sax.py</div>
<div>-rw-r--r--  1 root root     230 May 31  2008 usedoctest.py</div><div><br></div></div><div><br></div><div>-- <br>Best Regards,<br>Victor Borda<br><br><br><br>
</div>