2014-06-17 3 views
0

는 파이썬 3.4.1와 LXML 3.3.3을 컴파일하려고 찾을 수없는, GCC는파이썬 3.4 - LXML 컴파일 실패 - -lpython3.4m

gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/home/jeby6372/pack/lxml-3.3.4/src/lxml/includes -I/opt/python3/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -w 
gcc -pthread -shared build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -L/usr/lib -L. -lxslt -lexslt -lxml2 -lz -lm -lpython3.4m -o build/lib.linux-x86_64-3.4/lxml/etree.cpython-34m.so 
/usr/bin/ld: cannot find -lpython3.4m 
collect2: error: ld returned 1 exit status 
error: command 'gcc' failed with exit status 1 

어떤 생각 실패?

참고 : 나는 같은 문제 netiface-0.10.3을 컴파일하려고하고 아마 pyvenv (파이썬 가상 환경) 내에서 $ pip install psycopg2을 실행하는 동안 나는 정확히 같은 오류가 발생한 다른 python3 패키지

답변

0

에 있습니다. 문제의 원인은 내가 만든 pyvenv이 잘못되어 경로가 모두 잘못되었다는 것입니다.

새로운 pyvenv을 생성하고 프로세스를 재시작하면 모든 것이 잘되었습니다.

도움이되기를 바랍니다.