+ -
当前位置:首页 → 问答吧 → 编译时出现can't find Python library python2.5

编译时出现can't find Python library python2.5

时间:2008-04-19

来源:互联网


  我现在将python2.5,然后在用一个类似make的编译工具scons对一个全系统工具M5进行编译的时候出现了问题,我使用以下的命令行:
$scons build/ALPHA_FS/m5.debug
结果是:

Checking for C headler file Python.h ...yes
Adding /usr/local/lib to LIBPATH for python2.5
Checking for C library python2.5 ... no
Error: can't find Python library python2.5

我想是不是路径错了?我的python2.5的库文件放在/usr/local/lib/python2.5目录下,而我原来使用的rh9系统的python2.2库放在/usr/bin/python2.2目录中,我应该如何设置呢?谢谢。

作者: fengfm701   发布时间: 2008-04-19

自己顶一个,等高手帮助,谢谢

作者: fengfm701   发布时间: 2008-04-19

从编译结果的第二行看,不应该是路径的问题

作者: bhdgx   发布时间: 2008-04-20

已解决,就是将python2.5.a包放到/usr/lib就可以了,

作者: fengfm701   发布时间: 2008-04-22

但有个新问题:
$scons
出现:
build/ALPHA_SE/mem/cache/cache_impl.hh:1442:within this context
scons:***[build/ALPHA_SE/mem/cache/cache.do] Error 1
scons: building terminated because of errors

请指教,谢谢。

作者: fengfm701   发布时间: 2008-04-22

没遇到过这种情况.

作者: UltraBejing   发布时间: 2008-04-30

我现在也遇到同样的问题,不知道楼主有没有解决
scons:***[build/ALPHA_SE/alpha/atomic_simple_cpu_exec] Error 1
scons: building terminated because of errors

作者: jiaopeiwang   发布时间: 2011-12-06