uwsgi安装出错
系统信息:Linux version 3.16.7-x86_64-linode49 (maker@build) (gcc version 4.7.2 (Debian 4.7.2-5) )
python:2.7.3
执行pip install uwsgi
报错信息:
Command /usr/bin/python -c "import setuptools;__file__='/root/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-GKEc5O-record/install-record.txt failed with error code 1 in /root/build/uwsgi
Storing complete log in /root/.pip/pip.log
完整报错信息:
------------------------------------------------------------
/usr/bin/pip run on Sat Jan 3 12:50:58 2015
Downloading/unpacking uwsgi
Getting page http://pypi.python.org/simple/uwsgi
URLs to search for versions for uwsgi:
* http://pypi.python.org/simple/uwsgi/
Getting page http://pypi.python.org/simple/uwsgi/
Analyzing links from page https://pypi.python.org/simple/uwsgi/
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.4.10.tar.gz#md5=11855da2813ece2f48203ae48e7b4bb3 (from https://pypi.python.org/simple/uwsgi/), version: 1.4.10
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.4.9.tar.gz#md5=3fe995a39e0489621ddcc7acfbd49171 (from https://pypi.python.org/simple/uwsgi/), version: 1.4.9
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.1.tar.gz#md5=ebf17373ffee7517dc1b5796191c0bf0 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.10.tar.gz#md5=c65dca538e5498bc47516de6653bb6fd (from https://pypi.python.org/simple/uwsgi/), version: 1.9.10
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.11.tar.gz#md5=924393f187e34b737e50ea3f79c63a73 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.11
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.12.tar.gz#md5=93e561fcd4d7da48aafaf2a85095df58 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.12
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.13.tar.gz#md5=e331f96469166520a0e3d02296199cbd (from https://pypi.python.org/simple/uwsgi/), version: 1.9.13
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.14.tar.gz#md5=ec9cf333534604f17ef4e24051d9d65d (from https://pypi.python.org/simple/uwsgi/), version: 1.9.14
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.15.tar.gz#md5=e2a1c245e0b8b7e3c8dff8dbbfca52f3 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.15
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.16.tar.gz#md5=71fdc369d595ec40776ad954c6ea346b (from https://pypi.python.org/simple/uwsgi/), version: 1.9.16
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.17.1.tar.gz#md5=501f29ad4538193c0ef585b4cef46bcf (from https://pypi.python.org/simple/uwsgi/), version: 1.9.17.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.17.tar.gz#md5=0e05fe94aa6065a65fb1f54b327f6702 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.17
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.18.1.tar.gz#md5=9925e4c189cb0fcd26d4b2efd732b6ca (from https://pypi.python.org/simple/uwsgi/), version: 1.9.18.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.18.2.tar.gz#md5=dbc43696d03cdce9baa999b3791abfd3 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.18.2
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.18.tar.gz#md5=966a10a980a579f809db71bc7038ee0f (from https://pypi.python.org/simple/uwsgi/), version: 1.9.18
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.19.tar.gz#md5=1a6858130a4918de86410ccbf55945ae (from https://pypi.python.org/simple/uwsgi/), version: 1.9.19
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.2.tar.gz#md5=70d666a15e1255f6c596645f06fcfe87 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.2
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.20.tar.gz#md5=7ba1ef65e0678b6507e52dcabd158a61 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.20
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.21.1.tar.gz#md5=82df3eeacc0d4e661459bc50d50e757b (from https://pypi.python.org/simple/uwsgi/), version: 1.9.21.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.21.tar.gz#md5=c3698ab38fd9e32f9fadef1e35eba151 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.21
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.3.tar.gz#md5=30922b9f8f99e6abc13f03605e5a95e0 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.3
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.4.tar.gz#md5=4d69e56d2851ac88f4f96a8f836fc624 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.4
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.5.tar.gz#md5=369ba96fd4fbc9314992d4cf6ed687ed (from https://pypi.python.org/simple/uwsgi/), version: 1.9.5
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.6.tar.gz#md5=2c1007c48cfdc8876333967be14f9b2e (from https://pypi.python.org/simple/uwsgi/), version: 1.9.6
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.7.tar.gz#md5=d719eb220480b6712df51d72509272e3 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.7
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.8.tar.gz#md5=f9844674deb5da5565620a53c4b230d1 (from https://pypi.python.org/simple/uwsgi/), version: 1.9.8
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.9.tar.gz#md5=05596e66069cf1eaa6de70c9e9698feb (from https://pypi.python.org/simple/uwsgi/), version: 1.9.9
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-1.9.tar.gz#md5=d51ec3a05e9e20d9e438be1a5220ff3d (from https://pypi.python.org/simple/uwsgi/), version: 1.9
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.1.tar.gz#md5=e7234f16ddfb4fe5d0b5d5fa76dc17e1 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.2.tar.gz#md5=297578b2e3ef2102faeadaa0fb8aac6b (from https://pypi.python.org/simple/uwsgi/), version: 2.0.2
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.3.tar.gz#md5=3d27176082aba18d13871aa89d2610af (from https://pypi.python.org/simple/uwsgi/), version: 2.0.3
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.4.tar.gz#md5=fc37eeb58bd215fa0ed2c97cfe436ff4 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.4
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.5.1.tar.gz#md5=9c89a1d411719b205f4709abe166efe9 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.5.1
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.5.tar.gz#md5=631bf41f2c80e2fcdc26c855158e81a2 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.5
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.6.tar.gz#md5=50e9657ebbf52dd3bcd57b565f6b65a5 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.6
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.7.tar.gz#md5=c18da6536f2f47a204814225ba695042 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.7
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.8.tar.gz#md5=356b71060aa4c1f0e888dbca03567bd5 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.8
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.9.tar.gz#md5=44a5b044ea8416e7af310df0dea9caf8 (from https://pypi.python.org/simple/uwsgi/), version: 2.0.9
Found link https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.tar.gz#md5=e4ab884be53a18c40975da1f9f14ef3d (from https://pypi.python.org/simple/uwsgi/), version: 2.0
Found link http://projects.unbit.it/downloads/uwsgi-0.9.8.6.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 0.9.8.6
Found link http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.0.4
Found link http://projects.unbit.it/downloads/uwsgi-1.1.1.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.1.1
Found link http://projects.unbit.it/downloads/uwsgi-1.1.2.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.1.2
Found link http://projects.unbit.it/downloads/uwsgi-1.1.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.1
Found link http://projects.unbit.it/downloads/uwsgi-1.2.3.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.2.3
Found link http://projects.unbit.it/downloads/uwsgi-1.2.4.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.2.4
Found link http://projects.unbit.it/downloads/uwsgi-1.2.5.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.2.5
Found link http://projects.unbit.it/downloads/uwsgi-1.2.6.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.2.6
Found link http://projects.unbit.it/downloads/uwsgi-1.2.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.2
Found link http://projects.unbit.it/downloads/uwsgi-1.3.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.3
Found link http://projects.unbit.it/downloads/uwsgi-1.4.1.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.1
Found link http://projects.unbit.it/downloads/uwsgi-1.4.10.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.10
Found link http://projects.unbit.it/downloads/uwsgi-1.4.2.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.2
Found link http://projects.unbit.it/downloads/uwsgi-1.4.3.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.3
Found link http://projects.unbit.it/downloads/uwsgi-1.4.4.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.4
Found link http://projects.unbit.it/downloads/uwsgi-1.4.5.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.5
Found link http://projects.unbit.it/downloads/uwsgi-1.4.6.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.6
Found link http://projects.unbit.it/downloads/uwsgi-1.4.7.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.7
Found link http://projects.unbit.it/downloads/uwsgi-1.4.8.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4.8
Found link http://projects.unbit.it/downloads/uwsgi-1.4.tar.gz (from https://pypi.python.org/simple/uwsgi/), version: 1.4
Skipping link http://projects.unbit.it/uwsgi/ (from https://pypi.python.org/simple/uwsgi/); not a file
Using version 2.0.9 (newest of versions: 2.0.9, 2.0.8, 2.0.7, 2.0.6, 2.0.5.1, 2.0.5, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0, 1.9.21.1, 1.9.21, 1.9.20, 1.9.19, 1.9.18.2, 1.9.18.1, 1.9.18, 1.9.17.1, 1.9.17, 1.9.16, 1.9.15, 1.9.14, 1.9.13, 1.9.12, 1.9.11, 1.9.10, 1.9.9, 1.9.8, 1.9.7, 1.9.6, 1.9.5, 1.9.4, 1.9.3, 1.9.2, 1.9.1, 1.9, 1.4.10, 1.4.10, 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4, 1.3, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2, 1.1.2, 1.1.1, 1.1, 1.0.4, 0.9.8.6)
Downloading from URL https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.9.tar.gz#md5=44a5b044ea8416e7af310df0dea9caf8 (from https://pypi.python.org/simple/uwsgi/)
Running setup.py egg_info for package uwsgi
running egg_info
creating pip-egg-info/uWSGI.egg-info
writing pip-egg-info/uWSGI.egg-info/PKG-INFO
writing top-level names to pip-egg-info/uWSGI.egg-info/top_level.txt
writing dependency_links to pip-egg-info/uWSGI.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Running command /usr/bin/python -c "import setuptools;__file__='/root/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-GKEc5O-record/install-record.txt
running install
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/4.7/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']
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_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\"2.0.9\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="9" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -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] In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
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/yaml.o
[gcc -pthread] core/dot_h.o
[gcc -pthread] core/config_py.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
Complete output from command /usr/bin/python -c "import setuptools;__file__='/root/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-GKEc5O-record/install-record.txt:
running install
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/4.7/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']
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_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\"2.0.9\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="9" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -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] In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
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/yaml.o
[gcc -pthread] core/dot_h.o
[gcc -pthread] core/config_py.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/root/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-GKEc5O-record/install-record.txt failed with error code 1 in /root/build/uwsgi
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 250, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1133, in install
requirement.install(install_options, global_options)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 577, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/root/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-GKEc5O-record/install-record.txt failed with error code 1 in /root/build/uwsgi
请问如何解决?
妖狐飛影ゼロ
11 years, 2 months ago
Answers
按照
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html
的方法解决了,
apt-get install build-essential python-dev
pip install uwsgi
madbxm
answered 11 years, 2 months ago