Oddly enough, if I try to install lxml under the assumption that dependencies are not installed and try something like the following
it crashes with error output below. I should briefly note that for a stranger, this seems to solve a lot of people's problems, as it will come out and get any dependencies and install them to install lxml.
gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / include -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs-wininline -decls -c runsuite.c gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / include -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs-wininline -decls -c testchar.c testapi.c: In the function "Test_xmlBufferSetAllocationScheme: testapi.c: 18773: warning: comparison of different types of pointers is missing gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -I /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2/include -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-pr ototypes -Wnested-externs -Winline -Wredundant-decls -c testdict.c gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / include -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs-wininline -decls -c runxmlconf.c gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / include -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs-wininline -decls -c testrecurse.c sed -e 'S \ @XML_LIBDIR \ @ - ?? L / TMP / easy_install-Y2MKTg / LXML-2,3 / assembly / TMP / libxml2 / Lib g '\ -e' s? \ @ XML_INCLUDEDIR \ @? - I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / include / libxml2 -I / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / enable? g "\ -e? \ @ VERSION \ @? 2.7.8? g '\ -e' s? \ @ XML_LIBS \ @? - lxml2 -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm? g '\ <./ xml2Conf.sh.in> xml2Conf.tmp \ & && & mv xml2Conf.tmp xml2Conf.sh/bin/sh./libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite- strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -module -no- undefined -avoid-version -rpath / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -o testdso.la testdso.lo testapi.c: At the top level: testapi.c: 17989: warning: 'gen_xmlSchematronPtr but not using testapi.c: 17992: warning:' des_xmlSchematronPtr but not using testapi.c: 18009 : warning Resolution: "gen_xmlSchematronParserCtxtPtr but testapi.c is not used: 18012: warning: des_xmlSchematronParserCtxtPtr is not used testapi.c: 34157: warning: gen_xmlSAXHandlerPtr_ptr is not used testapi.cPtr_tr_tr_tr_trp_tr and is not used ar cru.libs / testdso.a testdso.o libtool: link: ranlib.libs / testdso.a libtool: link: (cd ".libs" & rm -f "testdso.la" && ln -s "../testdso .la "" testdso.la ") /bin/sh./Libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment - Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer- arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-declsversion info 9: 8: 7 -ldl -o libxml2.la -rpath / tmp / easy _install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory .lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlstring.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo xmlmodule.lo schematron.lo -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm libtool: link: ar cru.libs / libxml2.a SAX.o entities.o encoding.o error.o parserInternals. o parser.o tree.o hash.o list.o xmlIO.o xmlmemory.o uri.o valid.o xlink.o HTMLparser.o HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o nanohttp.o nanoftp .o DOCBparser.o catalog.o globals.o threads.o c14n.o xmlstring.o xmlregexp.o xmlschemas.o xmlschemastypes.o xmlunicode.o xmlreader .o relaxng.o dict.o SAX2.o xmlwriter.o legacy.o chvalid.o pattern.o xmlsave.o xmlmodule.o schematron.o libtool: link: ranlib.libs / libxml2.a libtool: link: (cd " .libs "&& rm -f" libxml2.la "&& & ln -s msgstr" ".. / libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit - Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwite-strings -Waggregate -return -Wstrict-prototypes -Wmissing-prototypes -Wnested -tern Winline -Wredundant-decls -o xmllint xmllint.o./libxml2.la -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm / bin / sh. / Libtool - -tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing -protot ypes -Wnested-externs -Winline -Wredundant-decls -o xmlcatalog xmlcatalog.o./libxml2.la -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm / bin /sh./libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o testSchemas testSchemas.o./libxml2.la -lz - L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm / bin / sh. / Libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W - Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmiss prototypes -Wnested-externs -Winline -Wredundant-decls -o testRelax testRelax.o./libxml2.la -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm / bin / sh. / libtool --tag = CC --mode = link gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite- strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o testSAX testSAX.o./libxml2.la -lz -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -liconv -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch - Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses - Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls - o testSAX testSAX.o./.libs/libxml2.a - L / TMP / easy_install-Y2MKTg / LXML-2.3 / build / tmp / libxml2 / lib - ldl -lz / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib / libiconv.a -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline-ex -decls -o testRelax testRelax.o. /.libs/libxml2.a -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -ldl -lz / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib / libiconv.a -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o xmlcatalog xmlcatalog.o. /.libs/libxml2.a -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -ldl -lz / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib / libiconv.a -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o testSchemas testSchemas.o. /.libs/libxml2.a -L / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -ldl -lz / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib / libiconv.a -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Whar-subscript -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o xmllint xmllint.o./.libs/libxml2.a -L / tmp / easy_install -Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib -ldl -lz / tmp / easy_install-Y2MKTg / lxml-2.3 / build / tmp / libxml2 / lib / libiconv.a -lm./..libs/libxml2. a (/. xmlIO.o): libs In the xmlGzfileOpenW': //tmp/libxml2.aeasy_install-(Y2MKTgxmlIO.o/):lxml -2.3/In build/function tmp/ function xmlGzfileOpenW': //tmp/libxml2.aeasy_install-(Y2MKTgxmlIO.o/):lxml -2.3/In build/function tmp/ libxml2xmlGzfileOpenW-': 2.7.8 // xmlIO .c: tmp1247 /: easy_install -Y2MKTg / lxml-2.3 / build / tmp / undefined libxml2-reference2.7.8 / xmlIO.c: 1247: to undefined `gzopen64 '. /reference.libs/libxml2.a(xmlIO.o): In the function `` XmlGzfileOpen_real ': gzopen64'
/./tmp./libs/easy_installlibxml2.a-(xmlIO.oY2MKTg):/lxml- In 2.3function / build / tmp / libxml2xmlGzfileOpen_real': -/2.7.8tmp//xmlIO.ceasy_install:1175-Y2MKTg/:lxml- 2.3/build/undefinedtmp /referencelibxml2-2.7.8 /toxmlIO.c : 1175: link gzopen64undefined 'to gzopen64' collect2: collect2: ld returned 1 exit status ld returned 1 exit status make[2]: *** [testRelax] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [testSAX] Error 1 .././.libs/libslibxml2.a/(libxml2.axmlIO.o(xmlIO.o)):: In function In the function xmlGzfileOpenW'xmlGzfileOpenW':: / tmp/easy_install-Y2MKTg//tmp/lxmleasy_install--Y2MKTg/lxml-2.32.3//build/tmp/buildlibxml2-2.7.8//xmlIO.ctmp:/libxml2-1247: undefined reference to 2.7.8gzopen64 / xmlIO.c: 1247: undefined '.reference / .to libs / gzopen64libxml2.a' (./.xmlIO.olibs/libxml2.a(xmlIO.o)): : In Infunction function xmlGzfileOpen_real '': xmlGzfileOpen_real / ': TMP // TMP / easy_install-Y2MKTgeasy_install- / Y2MKTg / LXML-lxml2.3-2.3 // build / TMP / builds / libxml2tmp / libxml2-2.7.82.7.8 / xmlIO.c: / 1175: xmlIO.c: 1175: undefinedundefined reference link to `` gzopen64 'gzopen64'collect2: ld returned 1 output status
collect2: ld returned 1 exit status. /.libs/libxml2.a(xmlIO.o): To the xmlGzfileOpenW': /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8/xmlIO.c:1247: undefined reference to function xmlGzfileOpenW': /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8/xmlIO.c:1247: undefined reference to gzopen64' . /.libs/libxml2.a(xmlIO.o): To the xmlGzfileOpen_real': /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8/xmlIO.c:1175: undefined reference to function xmlGzfileOpen_real': /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8/xmlIO.c:1175: undefined reference to gzopen64' collect2: ld returned 1 exit status make 2 : * [testSchemas] Error 1 make 2 : [xmlcatalog] Error 1 make 2 : [xmllint] Error 1 make 2 : leave the directory /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8 'make: * [all] Error 2 Traceback (last last call): File "/usr/local/bin/easy_install-2.7", line 8, at load_entry_point (' Setuptools == 0.6c11 ',' console_scripts ',' easy_install -2.7 ') () File "Build / bdist.linux-i686 / egg / Setuptools / commands / easy_install.py", line 1712, in the main file "Build / bdist.linux-i686 / egg / Setu ptools / command / easy_install.py ", line 1700, in the file with_ei_usage" Build / bdist.linux-i686 / egg / Setuptools / command / easy_install.py ", line 1716, in the file" / usr / local / lib / python2. 7 / distutils / core.py ", line 152, in the configuration dist.run_commands () File" /usr/local/lib/python2.7/distutils/dist.py ", line 953, in run_commands self.run_command (cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run () File "build / bdist.linux-i686 / egg / setuptools / command / easy_install.py" , line 211, in the startup file "Build / bdist.linux-i686 / egg / Setuptools / commands / easy_install.py", line 446, in the easy_install file "Build / bdist.linux-i686 / egg / Setuptools / commands / easy_install. py ", line 476, in the install_item file" Build / bdist.linux-i686 / egg / Setuptools / commands / easy_in stall.py ", line 655, in the install_eggs file" Build / bdist.linux-i686 / egg / Setuptools / commands / easy_install.py ", line 930, in the build_and_install file" Build / bdist.linux-i686 / egg / Setuptools / commands / easy_install.py ", line 919, in the run_setup file" Build / bdist.linux-i686 / egg / Setuptools / sandbox.py ", line 62, in the run_setup file" Build / bdist.linux-i686 / egg / Setuptools / sandbox.py ", line 105, in the startup file" Build / bdist.linux-i686 / egg / Setuptools / sandbox.py ", line 64, in the file" setup.py ", line 130, in
file "/tmp/easy_install-Y2MKTg/lxml-2.3/setupinfo.py", line 56, in the ext_modules file "/tmp/easy_install-Y2MKTg/lxml-2.3/buildlibxml.py", line 311, in the file build_libxml2xslt "/ tmp /easy_install-Y2MKTg/lxml-2.3/buildlibxml.py ", line 253, in the cmmi file" /tmp/easy_install-Y2MKTg/lxml-2.3/buildlibxml.py ", line 236, in call_subprocess Exception: the command" make -j6 " code 2 is returned