不能使用python2.6在centos(fc10)下编译uwsgi

时间:2010-04-07 08:10:12

标签: python compilation wsgi uwsgi

它通常用python 2.5构建但是我需要2.6! 2.6通常安装在/ opt / python26中并在控制台中成功运行为python2.6。

但是

python2.6 uwsgiconfig.py --build

给我

*** uWSGI linking ***
/usr/bin/ld: cannot find -lpython2.6
collect2: ld returned 1 exit status

HELP!

2 个答案:

答案 0 :(得分:1)

尝试:

LD_LIBRARY_PATH="/somepath/" python2.6 uwsgiconfig.py --build

其中somepathlibpython2.6.so.x文件的路径。

分别更新您的/etc/ld.so.conf文件并添加库的路径并运行ldconfig

答案 1 :(得分:0)

编辑uwsgiconfig.py并将PYLIB_PATH设置为python lib目录的路径。