python - ubuntu16.04 lxml的報錯
Jennifer Aniston
Jennifer Aniston 2017-06-12 09:26:59
0
1
1170

為收集的套件建立輪子:lxml、psutil、psycopg2、python-ldap
為lxml 執行setup.py bdist_wheel ... 錯誤
指令/usr/bin/python -u -c " 的完整輸出導入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 -atron
複製 src/lxml/isoschematron/__init__.py -atron###.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/isos.7/lxml/isos. 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/isosd 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-xslt/# 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
複製 src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_slt_1/is_s1. 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/isand_abstract_ build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
複製src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_resources/xsl/iso-schematron-xslt1/iso_schematron_1. -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
複製 src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/ build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
執行 build_ext
建置 'lxml.etree' 擴充
建立 build/temp.linux-x86_6_ 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 - 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/xml2 -Werror=format-security -fPIC -I/usr/include/xml2 - 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 -DNDEBUG fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全-Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-時間-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 - -lm -lm -lmd 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
為lxml 運行setup.py clean
為psutil 運行setup.py bdist_wheel ... error
指令/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(compile(code, __file__, 'exec'))" bdist_wheel -d / tmp/tmpz0SXDUpip-wheel- --python-tag cp27:
執行bdist_wheel
執行build
執行build_py
建立build
建立#build/lib.linux-x86_py
建立build
建立#build/lib.linux-x86_py
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##tempyuxd -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.SOURialiasing -Wdate-time -D_FOfCE -S. -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/psil .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,-Bsymbo-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-x so
/usr/local/bin/ld:此連結器未設定為使用sysroots
collect2:錯誤:ld 回傳1 退出狀態
錯誤:指令'x86_64-linux-gnu-gcc' 失敗退出狀態1

----------------------------------------------- -----------------
# 建造輪子失敗psutil
為psutil 運行setup.py clean
為psycopg2 運行setup.py bdist_wheel ... 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(compile(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
複製測試/test_bugX000.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_copy.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_connection.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_bug_gc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/dbapi20_tpc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_cursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_notify.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_with.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_quote.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_green.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_types_basic.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_dates.py -> build/lib.linux-x86_64-2.7/psycopg2/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
複製測試/testconfig.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_errcodes.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_lobject.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/testutils.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
複製測試/test_transaction.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
執行 build_ext
建置 'psycopg2._psycopg' 擴充
建立 build/temp.linux-x86_64-2.7#Ntempd/temp.linux-x86_64-2.7#templin. -x86_64-2.7/psycopg
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -Wstrict-prototypes -fno-strict-staliasing -Wdate-time -D_FORTd -Sf3f -prot? 6 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/psycopggmoduleo -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -Ferror格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / py. -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -Ferror格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / py. -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 -Wdelaration.oment.
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -Ferror格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / py. -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -Wdelament.
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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_datelarationoter-decatelamento-decstatement.
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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 -Ferror格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / py. -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-oter-decstatement.o-decstatement.
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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 -Wdecmentafter
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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聲明後宣告後宣告##pint.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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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_pfloatrationo -Wdeclament.
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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-decstatecmentment.
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 -Ferror格式安全-fPIC -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION =“2.6.2(dt dec pq3 ext lo64)” -DPG_VERSION_HEX = 0x090507 -DHAVE_LO64 = 1 -I / py. -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 -WWatat Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO64=1I/pyusr.clude/pyus -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 -WdecmentafterWdecment
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 -bat -Werror=format-security -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.2 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090507 -DHAVE_LO6411I/python.clude/python。 -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,-Bsymbo-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_64p. /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/by_formin. 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/cursord/plinxo. /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-27_644-2014 月.lin /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/psyuxp.g 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/pter_i60600000000000 月/p /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/tempm-uxmuxc /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/psstring. 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/x86_64-linux-gnu -lpq -o build/lib6. psycopg2/_psycopg.so
/usr/local/bin/ld:此連結器未設定為使用sysroots
collect2:錯誤:ld 回傳1 退出狀態
錯誤:指令'x86_64-linux-gnu- gcc' 失敗,退出狀態為1

----------------------------------------------- -----------------
# 建造輪子失敗psycopg2
為psycopg2 運行setup.py clean
為python-ldap 運行setup.py bdist_wheel ... error
指令/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:##cude ex_objects:R
extra_compile_args:##cude ex_objects:/v. /usr/local/include /usr/local/include/sasl
library_dirs: /usr/lib / usr/lib64 /usr/local/lib /usr/local/lib64
libs: ldap_r##c
執行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/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 -WWatat 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/sam/I/clude-I/usr/include/sa/I/clude 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=格式安全-f-f-DH-DH-fSAS -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/iclude/saslin -I/clude /python2.7 -c Modules/ldapcontrol.c -o build/temp.linux-x86_64-2.7/Modules/ldapcontrol.o
# x86_64-linux-gnu-gcc -pthread -DNDEBUG -gg -fwrapv -O2 - -Ws? 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 -fnosing-strict-alia -fnosing - Wdate-time -D_FORTIFY_SOURCE =2 -g -fstack-protector-strong -Wformat -Werror=格式安全性-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDMOMODULE_VERSIONm.4. /include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c Modules/constants.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 -Ferror格式安全-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -IModules -I/usr/include -I/usr/include/sasl - /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 -DHCS 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/local/include -I/usr/local/include/sasl -I/usr. 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-alia - 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/clr. /sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python2.7 -c 模組/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. -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/sl/slo 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
#86_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/ncludeb/local/r/cude/us/r/iclude /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 -Ferror格式安全-fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.27 -IModules -I/usr/include -I/usr/include/sasl -IModules -I/usr/include -I/usr/include/sasl - /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 -DHCS 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/local/include -I/usr/local/include/sasl -I/usr. 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 -fack-保護器強-Wformat -Werror=格式安全-Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=格式安全建置/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/tempn-x86_64-2.7/Modules/common.o build/temp-lin4-696. 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/Moleso build/temp.linux-x86_64-2.7/Modules/ldapmodule.o build/temp.linux-x86_64-2.7/Modules/message.o build/temp.linux-x86_64-2.7/Modules/version.o . -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、模擬,ofxparse,枕頭,psutil,psycopg2,pyparsing,pydot,pyserial,Python-Chart,python-dateutil,python-dateutil,python-dateutil ldap,pyusb,PyYAML,qrcode,suds-jurko,vobject,Werkzeug,XlsxWriter,xlwt,xlrd,xlutils, Sphinx、pockets、sphinxcontrib-napoleon、docxtpl、pdfkit
找到現有安裝:lxml#3.7.33. 雷雷

執行 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/lxmlor code 1 in /tmp/pip-build-oR6jUt/lxmlor code /

從前面的提示可以看到
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
我lxml是安裝好的,pip list可以看到

網路上也搜了很多,但還是沒有解決。

Jennifer Aniston
Jennifer Aniston

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

全部回覆 (1)
学霸
  1. 報錯‘error: command 'x86_64-linux-gnu-gcc' failed with exit status 1‘可Google此報錯,可找到解決方法,多嘗試

  2. 提供一個參考連結:(https://stackoverflow.com/que...

    最新下載
    更多>
    網站特效
    網站源碼
    網站素材
    前端模板
    關於我們 免責聲明 Sitemap
    PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!