centos7安装uwsgi报错_centos7安装uwsgi报错

[root@bogon ~]# pip installuwsgi

Collecting uwsgi

Using cached uwsgi-2.0.15.tar.gz

Installing collected packages: uwsgi

Running setup.pyinstall foruwsgi ... error

Complete output from command/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BPRRjx/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('

', '

');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4EVV4c-record/install-record.txt --single-version-externally-managed --compile:/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'descriptions'warnings.warn(msg)

runninginstallusing profile: buildconf/default.ini

detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include', '/usr/local/include', '/usr/include']

Patching"bin_name" to properly install_scripts dirdetected CPU cores:1configured CFLAGS:-O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-format -Wno-format-security -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_VERSION=""2.0.15"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="15" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="""" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_XML -DUWSGI_XML_EXPAT -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(ugreen);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(ugreen);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 -pthread] core/utils.o

[gcc -pthread] core/protocol.o

[gcc -pthread] core/socket.o

[gcc -pthread] core/logging.o

[gcc -pthread] core/master.o

[gcc -pthread] core/master_utils.o

[gcc -pthread] core/emperor.o

[gcc -pthread] core/notify.o

[gcc -pthread] core/mule.o

[gcc -pthread] core/subscription.o

[gcc -pthread] core/stats.o

[gcc -pthread] core/sendfile.o

[gcc -pthread] core/async.o

[gcc -pthread] core/master_checks.o

[gcc -pthread] core/fifo.o

[gcc -pthread] core/offload.o

[gcc -pthread] core/io.o

[gcc -pthread] core/static.o

[gcc -pthread] core/websockets.o

[gcc -pthread] core/spooler.o

[gcc -pthread] core/snmp.o

[gcc -pthread] core/exceptions.o

[gcc -pthread] core/config.o

[gcc -pthread] core/setup_utils.o

[gcc -pthread] core/clock.o

[gcc -pthread] core/init.o

[gcc -pthread] core/buffer.o

[gcc -pthread] core/reader.o

[gcc -pthread] core/writer.o

[gcc -pthread] core/alarm.o

[gcc -pthread] core/cron.o

[gcc -pthread] core/hooks.o

[gcc -pthread] core/plugins.o

[gcc -pthread] core/lock.o

[gcc -pthread] core/cache.o

[gcc -pthread] core/daemons.o

[gcc -pthread] core/errors.o

[gcc -pthread] core/hash.o

[gcc -pthread] core/master_events.o

[gcc -pthread] core/chunked.o

[gcc -pthread] core/queue.o

[gcc -pthread] core/event.o

[gcc -pthread] core/signal.o

[gcc -pthread] core/strings.o

[gcc -pthread] core/progress.o

[gcc -pthread] core/timebomb.o

[gcc -pthread] core/ini.o

[gcc -pthread] core/fsmon.o

[gcc -pthread] core/mount.o

[gcc -pthread] core/metrics.o

[gcc -pthread] core/plugins_builder.o

[gcc -pthread] core/sharedarea.o

[gcc -pthread] core/rpc.o

[gcc -pthread] core/gateway.o

[gcc -pthread] core/loop.o

[gcc -pthread] core/cookie.o

[gcc -pthread] core/querystring.o

[gcc -pthread] core/rb_timers.o

[gcc -pthread] core/transformations.o

[gcc -pthread] core/uwsgi.o

[gcc -pthread] proto/base.o

[gcc -pthread] proto/uwsgi.o

[gcc -pthread] proto/http.o

[gcc -pthread] proto/fastcgi.o

[gcc -pthread] proto/scgi.o

[gcc -pthread] proto/puwsgi.o

[gcc -pthread] lib/linux_ns.o

[gcc -pthread] core/zlib.o

[gcc -pthread] core/regexp.o

[gcc -pthread] core/routing.o

[gcc -pthread] core/yaml.o

[gcc -pthread] core/ssl.o

[gcc -pthread] core/legion.o

[gcc -pthread] core/xmlconf.o

[gcc -pthread] core/dot_h.o

[gcc -pthread] core/config_py.o*** uWSGI compiling embedded plugins ***[gcc -pthread] plugins/python/python_plugin.o

Infile included from plugins/python/python_plugin.c:1:0:

plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such fileor directory

#include

^compilation terminated.----------------------------------------Command"/bin/python -u -c"import setuptools, tokenize;__file__='/tmp/pip-build-BPRRjx/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('', '');f.close();exec(compile(code, __file__, 'exec'))"install --record /tmp/pip-4EVV4c-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-BPRRjx/uwsgi/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值