Странно, если я попытаюсь установить lxml в предположении, что зависимости не установлены, и попробую что-то вроде следующего
сбой с выводом ошибки ниже. Я должен кратко отметить, что для незнакомых, это, кажется, решает проблемы многих людей, поскольку он будет выходить и извлекать любые зависимости и устанавливать их для установки 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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -return -Wstrict-prototypes -Wmissing-прототипы -Wnested-externs -Winline -Wredundant-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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -return -Wstrict-prototypes -Wmissing-прототипы -Wnested-externs -Winline -Wredundant-decls -c testchar.c testapi.c: в функции
«Test_xmlBufferSetAllocationScheme»:
testapi.c: 18773: предупреждение: сравнение
в отдельных типах указателей отсутствует приведение
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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -return -Wstrict-prototypes -Wmissing-прототипы -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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -return -Wstrict-prototypes -Wmissing-прототипы -Wnested-externs -Winline -Wredundant-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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -вернуть -Строить-прототипы -Закрепить-прототипы -Внешние-экстерьеры -Винлайн -Вредуант-decls -c testrecurse.c sed -e
'S \ @ XML_LIBDIR \ @ -?? L / TMP / easy_install-Y2MKTg / LXML-2,3 / сборки / TMP / libxml2 / Lib г'
\
-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 / включить? г»
\
-e 's? \ @ 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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-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: на верхнем уровне: testapi.c: 17989:
предупреждение: «gen_xmlSchematronPtr»
определено, но не использовано testapi.c: 17992:
предупреждение: «des_xmlSchematronPtr»
определено, но не использовано testapi.c: 18009:
предупреждение:
«Gen_xmlSchematronParserCtxtPtr»
определено, но не использовано testapi.c: 18012:
предупреждение:
«Des_xmlSchematronParserCtxtPtr»
определено, но не использовано testapi.c: 34157:
предупреждение: "gen_xmlSAXHandlerPtr_ptr"
определено, но не использовано testapi.c: 34160:
предупреждение: "des_xmlSAXHandlerPtr_ptr"
определяется, но не используется libtool: link: ar
cru .libs / testdso.a testdso.o
libtool: ссылка: ranlib .libs / testdso.a
libtool: ссылка: (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 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer- arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -version-info 9: 8: 7 -ldl -o libxml2.la -rpath
/tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2/lib SAX.lo entity.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: ссылка: ar cru .libs / libxml2.a SAX.o entity.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: ссылка: ranlib
.libs / libxml2.a libtool: ссылка: (cd
".libs" && rm -f "libxml2.la" && ln -s
"../libxml2.la" "libxml2.la") / bin / sh
./libtool --tag = CC --mode = ссылка gcc
-g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate -return -Wstrict-prototypes -Wmissing-прототипы -Wnested-externs -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 - режим = ссылка gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototy-прототипы -prototypes -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 = ссылка gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-protopes -Wmissing-прототипы -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 = ссылка gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-protopes -Wmissing-прототипы -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 = ссылка gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-protopes -Wmissing-прототипы -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: ссылка: gcc -g -O2 -pedantic -W -Wformat -Wunused -Nimplicit -Wreturn-type -Wswitch - Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Write-strings -Waggregate-return -Wstrict-прототипы -Wmissing-прототипы -Wnested-externs -Winline -Wls 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: ссылка: gcc -g -O2 -педантичный -W -Wformat -Wunused -Wimplicit -Wreturn-тип -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-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: ссылка: gcc -g -O2 -педантичный -W -Wformat -Wunused -Wimplicit -Wreturn-тип -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast- выровняйте
./.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: ссылка: gcc -g -O2 -педантичный -W -Wformat -Wunused -Wimplicit -Wreturn-тип -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -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: ссылка: gcc -g -O2 -педантичный -W -Wformat -Wunused -Wimplicit -Wreturn-тип -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -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 В функции 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):
В функции
`` XmlGzfileOpen_real ': gzopen64'
/. / Tmp./libs/easy_installlibxml2.a-(xmlIO.oY2MKTg):/lxml-
В 2.3функция / сборка
/ tmp / libxml2xmlGzfileOpen_real':
-/2.7.8tmp//xmlIO.ceasy_install:1175-Y2MKTg/:lxml-
2.3/build/undefinedtmp /referencelibxml2-2.7.8 /toxmlIO.c
:
1175: gzopen64undefined 'ссылка
до 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
В функции
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:
неопределенная ссылка на
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 // построить / TMP / сборки / libxml2tmp / libxml2--2.7.82.7.8 / xmlIO.c: / 1175: xmlIO.c
: 1175: неопределенная неопределенная ссылка
ссылка на `` gzopen64 '
gzopen64'collect2: ld вернул 1 выход
статус
collect2: ld вернул 1 состояние выхода ./.libs/libxml2.a(xmlIO.o): в функции 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): в функции xmlGzfileOpen_real':
/tmp/easy_install-Y2MKTg/lxml-2.3/build/tmp/libxml2-2.7.8/xmlIO.c:1175:
undefined reference to
gzopen64 'collect2: ld вернул 1 состояние завершения make 2 : * [testSchemas] Ошибка 1 make 2 : [xmlcatalog] Ошибка 1 make 2 : [xmllint] Ошибка 1 make 2 : выход из каталога /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] Ошибка 2 Traceback (последний вызов был последним): файл "/usr/local/bin/easy_install-2.7", строка 8, в load_entry_point (' setuptools == 0.6c11 ','console_scripts ',' easy_install-2.7 ') () Файл "build / bdist.linux-i686 / egg / setuptools / command / easy_install.py", строка 1712, в основном файле "build / bdist.linux-i686 / egg / setuptools/command/easy_install.py ", строка 1700, в файле with_ei_usage" build / bdist.linux-i686 / egg / setuptools / command / easy_install.py ", строка 1716, в файле" /usr/local/lib/python2.7/distutils/core.py ", строка 152, в настройке dist.run_commands () FФайл "/usr/local/lib/python2.7/distutils/dist.py", строка 953, в файле run_commands self.run_command (cmd), файл "/usr/local/lib/python2.7/distutils/dist.py", строка 972, в файле run_command cmd_obj.run () "build / bdist.linux-i686 / egg / setuptools / command / easy_install.py", строка 211, в файле запуска "build / bdist.linux-i686 / egg / setuptools/command/easy_install.py ", строка 446, в файле easy_install" build / bdist.linux-i686 / egg / setuptools / command / easy_install.py ", строка 476, в файле install_item" build / bdist.linux-i686 / egg/setuptools/command/easy_install.py ", строка 655, в файле install_eggs" build / bdist.linux-i686 / egg / setuptools / command / easy_install.py ", строка 930, в файле build_and_install" build / bdist.linux-i686/egg/setuptools/command/easy_install.py ", строка 919, в файле run_setup" build / bdist.linux-i686 / egg / setuptools / sandbox.py ", строка 62, в файле run_setup" build / bdist.linux-i686/egg/setuptools/sandbox.py ", строка 105, в рабочем файле" build / bdist.linux-i686 / egg / setuptools / sandbox.py ", строка 64, в файле" setup.py ", строка130, в
файле "/tmp/easy_install-Y2MKTg/lxml-2.3/setupinfo.py", строка 56, в файле ext_modules "/tmp/easy_install-Y2MKTg/lxml-2.3/buildlibxml.py", строка 311,в файле build_libxml2xslt "/tmp/easy_install-Y2MKTg/lxml-2.3/buildlibxml.py", строка 253, в файле cmmi "/tmp/easy_install-Y2MKTg/lxml-2.3/buildlibxml.py", строка 236, вызов исключения, строка 236, в вызовеКоманда «make -j6» вернула код 2