在cygwin上安装uwsgi [英] installing uwsgi on cygwin

查看:109
本文介绍了在cygwin上安装uwsgi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人设法在cygwin(python 2.7)上安装uwsgi吗?

Have anyone managed to install uwsgi on cygwin (python 2.7) ?

{ uwsgi-2.0.11.2 }  » python setup.py install
running install
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/i686-pc-cygwin/4.9.2/include', '/usr/lib/gcc/i686-pc-cygwin/4.9.2/include-fixed', '/usr/include', '/usr/lib/gcc/i686-pc-cygwin/4.9.2/../../../../include/w32api']
Patching "bin_name" to properly install_scripts dir
detected CPU cores: 1
configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_WINDOWS_MUTEX -DUWSGI_EVENT_USE_POLL -DUWSGI_EVENT_TIMER_USE_NONE -DUWSGI_EVENT_FILEMONITOR_USE_NONE -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.11.2\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="11" -DUWSGI_VERSION_REVISION="2" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
*** uWSGI compiling server core ***
[gcc] core/utils.o
core/utils.c: In function ‘uwsgi_as_root’:
core/utils.c:848:4: error: implicit declaration of function ‘initgroups’ [-Werror=implicit-function-declaration]
    if (initgroups(uidname, uwsgi.gid)) {
    ^
cc1: all warnings being treated as errors

我有make,automake,gcc(4.9.2).我还需要其他东西吗?

I have got make, automake , gcc (4.9.2) . Do I need anything else ?

推荐答案

仅使用最新Cygwin .核心是步骤2

步骤:

  1. 下载 Cygwin
  2. install:在安装时,必须选择安装pip和python(我是python2.7.16)==>这是Cygwin的python,而不是Windows上安装并在Cygwin shell中使用的python (参考)
  3. dowload uwsgi
  4. 安装 cd {您的uwsgi};python2.7.exe setup install (( python2.7.exe 是python为您在步骤2中选择的Cygwin创建的,可能有所不同,位于/bin/pythonX.x.exe ,将其添加到 PATH 中,就像在linux(/etc/profile 〜/.bash_profile )中一样
  5. 如果在第4步中发生错误,例如找不到xxx/ld -lintl",请转到步骤2进行查找(通常是xxx-devel)并安装
  6. 使用 uwsig : python和Cygwin中的大多数cmd只能在Cygwin控制台上运行(否则拒绝访问),但是您可以使用uwsgi,将其添加到 WINDOWS PATH ,然后在Cygwin控制台中安装django之类的软件包.
  1. dowload Cygwin
  2. install: when you install, you must choose to install pip and python (my is python2.7.16) ==> this is python for Cygwin, not the python installed on Windows and use in Cygwin shell(REF TO)
  3. dowload uwsgi
  4. install cd {YOUR uwsgi}; python2.7.exe setup install(python2.7.exe is that created by python for Cygwin that you choose in step2, your may diff, find at /bin/pythonX.x.exe, add it to PATH just like in linux(/etc/profile or ~/.bash_profile))
  5. if error in step 4 occurred, like 'xxx/ld not found -lintl`, go to step2 find it(usually xxx-devel) and install
  6. use uwsig: python and most cmd in Cygwin can only run at Cygwin console(else access denial), but you can use uwsgi, add it to your WINDOWS PATH, and install package like django in at Cygwin console.

这篇关于在cygwin上安装uwsgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆