python - ubuntu16.04 lxml的报错
伊谢尔伦
伊谢尔伦 2017-06-12 09:26:59
0
1
1247

为收集的包构建轮子:lxml、psutil、psycopg2、python-ldap
为 lxml 运行 setup.py bdist_wheel ... 错误
命令 /usr/bin/python -u -c "import setuptools, tokenize;__file__ 的完整输出='/tmp/pip-build-oR6jUt/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n ');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpCfS4gipip-wheel- --python-tag cp27:
构建 lxml 版本 3.5.0.
构建没有 Cython。
使用 libxslt 1.1.28 的构建配置
运行 bdist_wheel
运行 build
运行 build_py
创建 build
创建 build/lib.linux-x86_64-2.7
创建 build/lib.linux-x86_64-2.7/lxml
复制src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml
创建 build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes
创建 build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html
复制 src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html
创建 build/lib.linux-x86_64-2.7/lxml/isoschematron
复制 src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron
复制 src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml
复制 src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes
复制 src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes
创建 build/lib.linux-x86_64-2.7/lxml/isoschematron/resources
创建 build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
复制 src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
创建 build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
复制 src/lxml/isoschematron/resources/xsl/XSD2Schtrn。 xsl-> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
复制 src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
创建 build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
复制 src/lxml/isoschematron/资源/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
复制 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
复制 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
复制 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
复制 src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_骨骼_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
复制 src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
运行build_ext
构建'lxml.etree'扩展
创建build/temp.linux-x86_64-2.7
创建build/temp .linux-x86_64-2.7/src
创建 build/temp.linux-x86_64-2.7/src/lxml
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno- strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -Isrc/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 -pthread -shared - Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time - D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong - Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/ etree.so
/usr/local/bin/ld:此链接器未配置为使用 sysroots
collect2:错误:ld 返回 1 退出状态
错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为 1

----------------------------------------
lxml 构建轮子失败
运行安装程序.py clean for lxml
为 psutil 运行 setup.py bdist_wheel ... 错误
命令 /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oR6jUt/ 的完整输出psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(编译(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpz0SXDUpip-wheel- --python-tag cp27:
运行 bdist_wheel
运行 build
运行 build_py
创建 build
创建 build/lib.linux-x86_64 -2.7
创建 build/lib.linux-x86_64-2.7/psutil
复制 psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil
复制 psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil
创建 build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_system.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_windows.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/runner.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/__init__.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_osx.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_bsd.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_sunos.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_process.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_posix.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_misc.py -> build/lib.linux-x86_64-2.7/psutil/tests
复制 psutil/tests/test_linux.py -> build/lib.linux-x86_64-2.7/psutil/tests
运行 build_ext
构建 'psutil._psutil_linux' 扩展
创建 build/temp.linux-x86_64-2.7
创建 build/temp.linux-x86_64-2.7/psutil
x86_64 -linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format -security -fPIC -DPSUTIL_VERSION=431 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv - O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time - D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_linux。所以
/usr/local/bin/ld:此链接器未配置为使用 sysroots
collect2:错误:ld 返回 1 退出状态
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1

----------------------------------------
psutil 构建轮子失败
运行安装程序.py clean for psutil
运行 setup.py bdist_wheel for psycopg2 ... error
命令 /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oR6jUt/ 的完整输出psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(编译(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpEIBTDMpip-wheel- --python-tag cp27:
运行 bdist_wheel
运行 build
运行 build_py
创建 build
创建 build/lib.linux-x86_64 -2.7
创建 build/lib.linux-x86_64-2.7/psycopg2
复制 lib/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/errorcodes.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/extensions.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/pool.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/extras.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/tz.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/psycopg1.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/_range.py -> build/lib.linux-x86_64-2.7/psycopg2
复制 lib/_json.py -> build/lib.linux-x86_64-2.7/psycopg2
创建 build/lib.linux-x86_64-2.7/psycopg2/tests
复制测试/test_module.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_bugX000.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_copy.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_connection.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_bug_gc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/dbapi20_tpc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_cursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_notify.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_with.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_quote.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_green.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_types_basic.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_dates.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_types_extras.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制测试/test_cancel.py-> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/testconfig.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_errcodes.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_lobject.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/testutils.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
复制tests/test_transaction.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
运行 build_ext
构建 'psycopg2._psycopg' 扩展
创建 build/temp.linux-x86_64-2.7
创建 build/temp.linux-x86_64-2.7/psycopg
x86_64 -linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format -security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1 -I/usr/include/python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/green.c -o build/temp.linux-x86_64-2.7/psycopg/green.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-2.7/psycopg/pqpath.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/utils.c -o build/temp.linux-x86_64-2.7/psycopg/utils.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-2.7/psycopg/connection_int.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-2.7/psycopg/connection_type.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/diagnostics_type.c -o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/error_type.c -o build/temp.linux-x86_64-2.7/psycopg/error_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-2.7/psycopg/notify_type.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/xid_type.c -o build/temp.linux-x86_64-2.7/psycopg/xid_type.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o -W声明后语句
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror =格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / usr / include / python2.7 -I。 -I/usr/include/postgresql -I/usr/include/postgresql/9.5/server -c psycopg/typecast.c -o build/temp.linux-x86_64-2.7/psycopg/typecast.o -W声明后声明
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv - O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time - D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.7/psycopg/green.o 构建/temp.linux-x86_64-2.7/psycopg/pqpath.o build/temp.linux-x86_64-2.7/psycopg/utils.o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o build/temp.linux- x86_64-2.7/psycopg/connection_int.o build/temp.linux-x86_64-2.7/psycopg/connection_type.o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o build/temp.linux-x86_64-2.7/psycopg /cursor_type.o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o build/temp.linux-x86_64-2.7/psycopg/error_type.o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o 构建/temp.linux-x86_64-2.7/psycopg/lobject_type.o build/temp.linux-x86_64-2.7/psycopg/notify_type.o build/temp.linux-x86_64-2.7/psycopg/xid_type.o build/temp.linux- x86_64-2.7/psycopg/adapter_asis.o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.7/psycopg /adapter_list.o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o 构建/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o build/temp.linux- x86_64-2.7/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.7/psycopg/typecast.o -L/usr/lib/x86_64-linux-gnu -lpq -o build/lib.linux-x86_64-2.7/ psycopg2/_psycopg.so
/usr/local/bin/ld:此链接器未配置为使用 sysroots
collect2:错误:ld 返回 1 退出状态
错误:命令“x86_64-linux-gnu-gcc”失败并退出状态1

----------------------------------------
psycopg2 构建轮子失败
运行设置.py clean for psycopg2
为 python-ldap 运行 setup.py bdist_wheel ... 错误
命令 /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build- 的完整输出oR6jUt/python-ldap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close( );exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpY3tYUepip-wheel- --python-tag cp27:
定义: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /usr /include /usr/include/sasl /usr/local/include /usr/local/include/sasl
库目录:/usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
库:ldap_r
运行bdist_wheel
运行build
运行build_py
找不到文件Lib/ldap.py(对于模块ldap)
找不到文件Lib/ldap/controls.py(对于模块ldap.controls)
找不到文件Lib/ldap/extop.py(对于模块 ldap.extop)找不到
文件 Lib/ldap/schema.py (对于模块 ldap.schema)找不到
创建构建
创建 build/lib.linux-x86_64-2.7
复制 Lib/ldapurl.py -> build/lib.linux-x86_64-2.7
复制 Lib/ldif.py -> build/lib.linux-x86_64-2.7
复制 Lib/dsml.py -> build/lib.linux-x86_64-2.7
创建 build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/__init__.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/async.py -> build/lib.linux-x86_64-2.7/ldap
创建 build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/psearch.py​​ -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-2.7/ldap/controls
复制 Lib/ldap/cidict.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/dn.py -> build/lib.linux-x86_64-2.7/ldap
创建 build/lib.linux-x86_64-2.7/ldap/extop
复制 Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-2.7/ldap/extop
复制 Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-2.7/ldap/extop
复制 Lib/ldap/filter.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/functions.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/logger.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/modlist.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/resiter.py -> build/lib.linux-x86_64-2.7/ldap
复制 Lib/ldap/sasl.py -> build/lib.linux-x86_64-2.7/ldap
创建 build/lib.linux-x86_64-2.7/ldap/schema
复制 Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-2.7/ldap/schema
复制 Lib/ldap/schema/models.py -> build/lib.linux-x86_64-2.7/ldap/schema
复制 Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-2.7/ldap/schema
复制 Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-2.7/ldap/schema
复制 Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-2.7/ldap
文件 Lib/ldap.py(对于模块 ldap)找不到
文件 Lib/ldap/controls.py(对于模块 ldap.controls)找不到
文件 Lib/ldap/extop找不到.py(对于模块ldap.extop)
文件Lib/ldap/schema.py(对于模块ldap.schema)找不到
运行egg_info
将需求写入Lib/python_ldap.egg-info/requires.txt
写入Lib /python_ldap.egg-info/PKG-INFO
将顶级名称写入 Lib/python_ldap.egg-info/top_level.txt
将 dependency_links 写入 Lib/python_ldap.egg-info/dependency_links.txt
警告:manifest_maker:标准文件找不到“-c”

找不到文件 Lib/ldap.py (对于模块 ldap)
找不到文件 Lib/ldap/controls.py (对于模块 ldap.controls)
找不到文件 Lib/ldap/extop.py (对于模块 ldap.extop)
文件 Lib/ldap/schema.py (对于模块 ldap.schema)未找到
读取清单文件 'Lib/python_ldap.egg-info/SOURCES.txt'
读取清单模板 'MANIFEST.in'
警告:未找到文件匹配'Makefile'
警告:没有找到匹配'模块/许可证'的文件
编写清单文件'Lib/python_ldap.egg-info/SOURCES.txt'
运行build_ext
构建'_ldap'扩展
创建build/temp.linux- x86_64-2.7
创建 build/temp.linux-x86_64-2.7/Modules
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include /sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules /LDAPObject.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I /usr/local/include/sasl -I/usr/include/python2.7 -c Modules/ldapcontrol.c -o build/temp.linux-x86_64-2.7/Modules/ldapcontrol.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr /include/python2.7 -c Modules/common.c -o build/temp.linux-x86_64-2.7/Modules/common.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c 模块/常量。 c -o build/temp.linux-x86_64-2.7/Modules/constants.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/ include/sasl -I/usr/include/python2.7 -c Modules/errors.c -o build/temp.linux-x86_64-2.7/Modules/errors.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG - g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R - DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.1 7 -c Modules/functions.c -o build/temp.linux-x86_64-2.7/Modules/functions.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes - fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/ usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c Modules/schema.c -o build/ temp.linux-x86_64-2.7/Modules/schema.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE= 2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -我/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c Modules/ldapmodule.c -o build/temp.linux-x86_64-2.7/Modules/ldapmodule。 o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat - Werror=格式安全-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/ local/include/sasl -I/usr/include/python2.7 -c Modules/message.c -o build/temp.linux-x86_64-2.7/Modules/message.o
x86_64-linux-gnu-gcc -pthread - DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS - DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/ python2.7 -c Modules/version.c -o build/temp.linux-x86_64-2.7/Modules/version.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/ include/sasl -I/usr/include/python2.7 -c Modules/options.c -o build/temp.linux-x86_64-2.7/Modules/options.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG - g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R - DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.1 7 -c Modules/berval.c -o build/temp.linux-x86_64-2.7/Modules/berval.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions - Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong - Wformat -Werror=格式安全 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全 build/temp.linux -x86_64-2.7/Modules/LDAPObject.o build/temp.linux-x86_64-2.7/Modules/ldapcontrol.o build/temp.linux-x86_64-2.7/Modules/common.o build/temp.linux-x86_64-2.7/ Modules/constants.o build/temp.linux-x86_64-2.7/Modules/errors.o build/temp.linux-x86_64-2.7/Modules/functions.o build/temp.linux-x86_64-2.7/Modules/schema.o构建/temp.linux-x86_64-2.7/Modules/ldapmodule.o 构建/temp.linux-x86_64-2.7/Modules/message.o 构建/temp.linux-x86_64-2.7/Modules/version.o 构建/temp.linux -x86_64-2.7/Modules/options.o build/temp.linux-x86_64-2.7/Modules/berval.o -L/usr/local/lib -L/usr/local/lib64 -Wl,-R/usr/local /lib -Wl,-R/usr/local/lib64 -lldap_r -o build/lib.linux-x86_64-2.7/_ldap.so
/usr/local/bin/ld:此链接器未配置为使用 sysroots
collect2 : 错误:ld 返回 1 退出状态
错误:命令 'x86_64-linux-gnu-gcc' 失败,退出状态 1

----------------------------------------
为 python-ldap 构建轮子失败
为 python-ldap 运行 setup.py clean
无法构建 lxml psutil psycopg2 python-ldap
安装收集的软件包:lxml、ebaysdk、feedparser、greenlet、gevent、jcconv、Mako、funcsigs、mock、ofxparse、Pillow、psutil、psycopg2、 pyparsing、pydot、pyserial、Python-Chart、python-dateutil、python-ldap、pyusb、PyYAML、qrcode、suds-jurko、vobject、Werkzeug、XlsxWriter、xlwt、xlrd、xlutils、Sphinx、口袋、sphinxcontrib-napoleon、docxtpl、 pdfkit
找到现有安装:lxml 3.7.3

雷雷

运行 setup.py install for lxml ...错误

Uninstalling lxml-3.7.3:
  Successfully uninstalled lxml-3.7.3

Rolling back uninstall of lxml
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oR6jUt/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-iHu1KI-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-oR6jUt/lxml/

从前面的提示可以看到
Building wheels for collected packages: lxml, psutil, psycopg2, python-ldap
Running setup.py bdist_wheel for lxml ... error

Failed building wheel for lxml
Failed building wheel for psutil
Failed building wheel for psycopg2
Failed building wheel for python-ldap
Failed building wheel for reportlab

我lxml是安装好的,pip list可以看到

网上也搜了很多,但是还是没有解决。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回复(1)
学霸
  1. 报错‘error: command 'x86_64-linux-gnu-gcc' failed with exit status 1‘可Google此报错,可找到解决方法,多尝试

  2. 提供一个参考链接:(https://stackoverflow.com/que...

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板