2010-04-07 64 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目錄的路徑。