2010-04-07 62 views
0

它通常使用python 2.5编译,但是我需要2.6! 2.6通常安装在/ opt/python26中,并在控制台中成功运行为python2.6。无法在centos(fc10)下使用python2.6编译uwsgi

python2.6 uwsgiconfig.py --build 

给我

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

HELP!

回答

1

尝试:

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

其中somepath是路径到libpython2.6.so.x文件。

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

0

编辑uwsgiconfig.py并设置PYLIB_PATH到蟒蛇lib目录的路径。