我用make编译了uwsgi并且它已成功完成,现在我决定用python3.3运行我的django1.5站点.我检查了doc(http://projects.unbit.it/uwsgi/wiki/Guide4Packagers)并通过apt-get设置了python3.3开发头文件,然后通过以下方式编译插件:
python3.3 uwsgiconfig.py --plugin插件/ python包python33
然后它说:
using profile: buildconf/package.ini
detected include path: ['/usr/lib/gcc/i686-linux-gnu/4.7/include', '/usr/local/include','/usr/lib/gcc/i686-linux-gnu/4.7/include-fixed', '/usr/include/i386-linux-gnu', '/usr/include']
*** uWSGI building and linking plugin plugins/python ***
[i686-linux-gnu-gcc -pthread] /usr/lib/uwsgi/python33_plugin.so
*** python33 plugin built and available in /usr/lib/uwsgi/python33_plugin.so ***
Run Code Online (Sandbox Code Playgroud)
似乎一切都做得很好,我确实在那个目录中找到了python33_plugin.so.nginx正在运行并且没问题,现在我的uwsgi ini文件是这样的:
[uwsgi]
socket=0.0.0.0:8000
listen=20
master=true
pidfile=/usr/local/nginx/uwsgi.pid
processes=2
plugins=python33
module=django_wsgi
pythonpath=
profiler=true
memory-report=true
enable-threads=true
logdate=true
limit-as=6048
Run Code Online (Sandbox Code Playgroud)
当我运行"sudo ./uwsgi uwsgi.ini"时,
[uWSGI] getting INI configuration from uwsgi.ini
open("./python33_plugin.so"): No such file or directory [core/utils.c line 3347]
!!! UNABLE to load uWSGI plugin: ./python33_plugin.so: cannot …Run Code Online (Sandbox Code Playgroud)