/ usr / bin / ld:错误:找不到-lpython2.7

时间:2014-04-27 21:05:01

标签: python linux gcc compilation

安装pyscard.py时出现此错误:

gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib build/temp.linux-x86_64-2.7/smartcard/scard/helpers.o build/temp.linux-x86_64-2.7/smartcard/scard/winscarddll.o build/temp.linux-x86_64-2.7/smartcard/scard/scard_wrap.o -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib -lpython2.7 -lpython2.7 -o build/lib.linux-x86_64-2.7/smartcard/scard/_scard.so
/usr/bin/ld: error: cannot find -lpython2.7
/usr/bin/ld: error: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

我发现这个post有同样的问题;我无法让它工作,我仍然得到相同的结果,我不知道该怎么做./configure或在路径后做。有人可以为我澄清这个吗?

0 个答案:

没有答案