无法在centos(fc10)下使用python2.6编译uwsgi

无法在centos(fc10)下使用python2.6编译uwsgi,python,compilation,wsgi,uwsgi,Python,Compilation,Wsgi,Uwsgi,它通常是用Python2.5构建的,但我需要2.6! 2.6通常安装在/opt/python26中,并在控制台中作为python2.6成功运行 但是 给我 *** uWSGI linking *** /usr/bin/ld: cannot find -lpython2.6 collect2: ld returned 1 exit status 救命啊 试试看: LD_LIBRARY_PATH="/somepath/" python2.6 uwsgiconfig.py --build 其中so

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

但是

给我

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

试试看:

LD_LIBRARY_PATH="/somepath/" python2.6 uwsgiconfig.py --build
其中
somepath
是指向
libpython2.6.so.x
文件的路径


分别更新
/etc/ld.so.conf
文件并将路径添加到库中,然后运行
ldconfig

编辑uwsgiconfig.py并将PYLIB\u路径设置为python库目录的路径

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