python - lxml installation error ubuntu 14.04 (internal compiler error) -


i having problems installing lxml. have tried solutions of relative questions in site , other sites not fix problem. need suggestions/solution on this.

i providing full log after executing pip install lxml,

downloading/unpacking lxml   downloading lxml-3.3.5.tar.gz (3.5mb): 3.5mb downloaded   running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info package lxml     /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url'       warnings.warn(msg)     building lxml version 3.3.5.     building without cython.     using build configuration of libxslt 1.1.28      warning: no previously-included files found matching '*.py' installing collected packages: lxml   running setup.py install lxml     /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url'       warnings.warn(msg)     building lxml version 3.3.5.     building without cython.     using build configuration of libxslt 1.1.28     building 'lxml.etree' extension     x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fpic -i/usr/include/libxml2 -i/tmp/pip_build_root/lxml/src/lxml/includes -i/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w     x86_64-linux-gnu-gcc: internal compiler error: killed (program cc1)     please submit full bug report,     preprocessed source if appropriate.     see <file:///usr/share/doc/gcc-4.8/readme.bugs> instructions.     error: command 'x86_64-linux-gnu-gcc' failed exit status 4     complete output command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kuq9vd-record/install-record.txt --single-version-externally-managed --compile:     /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'bugtrack_url'    warnings.warn(msg)  building lxml version 3.3.5.  building without cython.  using build configuration of libxslt 1.1.28  running install  running build  running build_py  creating build  creating build/lib.linux-x86_64-2.7  creating build/lib.linux-x86_64-2.7/lxml  copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/elementinclude.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml  creating build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes  creating build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/elementsoup.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html  copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html  creating build/lib.linux-x86_64-2.7/lxml/isoschematron  copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron  copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml  copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes  copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl  copying src/lxml/isoschematron/resources/xsl/rng2schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl  copying src/lxml/isoschematron/resources/xsl/xsd2schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  running build_ext  building 'lxml.etree' extension  creating build/temp.linux-x86_64-2.7  creating build/temp.linux-x86_64-2.7/src  creating build/temp.linux-x86_64-2.7/src/lxml  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fpic -i/usr/include/libxml2 -i/tmp/pip_build_root/lxml/src/lxml/includes -i/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w  x86_64-linux-gnu-gcc: internal compiler error: killed (program cc1)  please submit full bug report,  preprocessed source if appropriate.  see <file:///usr/share/doc/gcc-4.8/readme.bugs> instructions.  error: command 'x86_64-linux-gnu-gcc' failed exit status 4  ---------------------------------------- cleaning up... command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kuq9vd-record/install-record.txt --single-version-externally-managed --compile failed error code 1 in /tmp/pip_build_root/lxml storing debug log failure in /root/.pip/pip.log 

also, pip.log file looks this,

status = self.run(options, args)   file "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run     requirement_set.install(install_options, global_options, root=options.root_path)   file "/usr/lib/python2.7/dist-packages/pip/req.py", line 1435, in install     requirement.install(install_options, global_options, *args, **kwargs)   file "/usr/lib/python2.7/dist-packages/pip/req.py", line 706, in install     cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=false)   file "/usr/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess     % (command_desc, proc.returncode, cwd)) installationerror: command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kuq9vd-record/install-record.txt --single-version-externally-managed --compile failed error code 1 in /tmp/pip_build_root/lxml 

dmesg | tail command shows output this,

[1744367.676147] out of memory: kill process 25518 (cc1) score 388 or sacrifice child [1744367.676665] killed process 25518 (cc1) total-vm:242352kb, anon-rss:200608kb, file-rss:0kb 

it's seems memory issue. taking reference form this question

in particular case, has nothing dependencies, it's memory problem.

i had problem within virtualbox vm. solution increase memory allocated vm default 512mb 1024mb.


Comments

Popular posts from this blog

Unable to open serial port using Putty to bluetooth device on windows 7 64 bit -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -