Skip to content

Instantly share code, notes, and snippets.

@lardissone
Created November 21, 2012 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lardissone/4125461 to your computer and use it in GitHub Desktop.
Save lardissone/4125461 to your computer and use it in GitHub Desktop.
libxml error
------------------------------------------------------------
/Users/leandroardissone/workspace/Envs/mitmproxy/bin/pip run on Wed Nov 21 12:06:49 2012
Downloading/unpacking lxml
Running setup.py egg_info for package lxml
Building lxml version 3.0.1.
Building without Cython.
Using build configuration of libxslt 1.1.24
Building against libxml2/libxslt in the following directory: /Applications/MAMP/Library/lib
running egg_info
writing pip-egg-info/lxml.egg-info/PKG-INFO
writing top-level names to pip-egg-info/lxml.egg-info/top_level.txt
writing dependency_links to pip-egg-info/lxml.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'src/lxml/tests'
writing manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
Installing collected packages: lxml
Running setup.py install for lxml
Running command /Users/leandroardissone/workspace/Envs/mitmproxy/bin/python -c "import setuptools;__file__='/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/12/k0yq0ww57_z31fssfzn50n2w0000gn/T/pip-UkjXGa-record/install-record.txt --install-headers /Users/leandroardissone/workspace/Envs/mitmproxy/include/site/python2.7
Building lxml version 3.0.1.
Building without Cython.
Using build configuration of libxslt 1.1.24
Building against libxml2/libxslt in the following directory: /Applications/MAMP/Library/lib
running install
running build
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.8-intel-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch i386 -arch x86_64 -I/Applications/MAMP/Library/include -I/Applications/MAMP/Library/include/libxml2 -I/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-intel-2.7/src/lxml/lxml.etree.o -flat_namespace
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-flat_namespace'
In file included from src/lxml/lxml.etree.c:254:
/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command 'clang' failed with exit status 1
Complete output from command /Users/leandroardissone/workspace/Envs/mitmproxy/bin/python -c "import setuptools;__file__='/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/12/k0yq0ww57_z31fssfzn50n2w0000gn/T/pip-UkjXGa-record/install-record.txt --install-headers /Users/leandroardissone/workspace/Envs/mitmproxy/include/site/python2.7:
Building lxml version 3.0.1.
Building without Cython.
Using build configuration of libxslt 1.1.24
Building against libxml2/libxslt in the following directory: /Applications/MAMP/Library/lib
running install
running build
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.8-intel-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch i386 -arch x86_64 -I/Applications/MAMP/Library/include -I/Applications/MAMP/Library/include/libxml2 -I/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-intel-2.7/src/lxml/lxml.etree.o -flat_namespace
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-flat_namespace'
In file included from src/lxml/lxml.etree.c:254:
/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command /Users/leandroardissone/workspace/Envs/mitmproxy/bin/python -c "import setuptools;__file__='/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/12/k0yq0ww57_z31fssfzn50n2w0000gn/T/pip-UkjXGa-record/install-record.txt --install-headers /Users/leandroardissone/workspace/Envs/mitmproxy/include/site/python2.7 failed with error code 1 in /Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml
Exception information:
Traceback (most recent call last):
File "/Users/leandroardissone/workspace/Envs/mitmproxy/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/Users/leandroardissone/workspace/Envs/mitmproxy/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 250, in run
requirement_set.install(install_options, global_options)
File "/Users/leandroardissone/workspace/Envs/mitmproxy/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1133, in install
requirement.install(install_options, global_options)
File "/Users/leandroardissone/workspace/Envs/mitmproxy/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 577, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Users/leandroardissone/workspace/Envs/mitmproxy/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/leandroardissone/workspace/Envs/mitmproxy/bin/python -c "import setuptools;__file__='/Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/12/k0yq0ww57_z31fssfzn50n2w0000gn/T/pip-UkjXGa-record/install-record.txt --install-headers /Users/leandroardissone/workspace/Envs/mitmproxy/include/site/python2.7 failed with error code 1 in /Users/leandroardissone/workspace/Envs/mitmproxy/build/lxml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment