I am trying to go down the learning curve on lxml.
I tried to follow the install instructions to install lxml on my MacOS
As root, I did:
STATIC_DEPS=true easy_install lxml
The install chugged away, but eventually failed:
...
Undefined symbols for architecture i386:
"_gzdirect", referenced from:
___xmlParserInputBufferCreateFilename in libxml2.a(xmlIO.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture ppc:
"_gzdirect", referenced from:
___xmlParserInputBufferCreateFilename in libxml2.a(xmlIO.o)
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccsmIZu8.out (No such file or
directory)
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Traceback (most recent call last):
File "/usr/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c7', 'console_scripts',
'easy_install')()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1670, in
main
with_ei_usage(lambda:
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1659, in
with_ei_usage
return f()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1674, in
<lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 446, in
easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 471, in
install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 655, in
install_eggs
return self.build_and_install(setup_script, setup_base)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 930, in
build_and_install
self.run_setup(setup_script, setup_base, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 919, in
run_setup
run_setup(setup_script, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 27, in run_setup
lambda: execfile(
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 63, in run
return func()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 29, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 119, in <module>
File "/tmp/easy_install-XVh5wp/lxml-2.2.6/setupinfo.py", line 50,
in ext_modules
File "/tmp/easy_install-XVh5wp/lxml-2.2.6/buildlibxml.py", line
208, in build_libxml2xslt
File "/tmp/easy_install-XVh5wp/lxml-2.2.6/buildlibxml.py", line
158, in call_subprocess
Exception: Command "make" returned code 2
Any thing obvious jump out at anyone that I might have missed?
thanks in advance
sgg
Steve Graham
sgg(a)ci.uchicago.edu