Skip to content

Instantly share code, notes, and snippets.

@lxyu
Created July 15, 2015 07:41
Show Gist options
  • Save lxyu/2457f2ad1873ffaf2337 to your computer and use it in GitHub Desktop.
Save lxyu/2457f2ad1873ffaf2337 to your computer and use it in GitHub Desktop.
Gevent install log on archlinux
$ sudo pip install gevent==1.1a2
Collecting gevent==1.1a2
  Using cached gevent-1.1a2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.7 in /usr/lib/python3.4/site-packages (from gevent==1.1a2)
Building wheels for collected packages: gevent
  Running setup.py bdist_wheel for gevent
  Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-lfmpuicl/gevent/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp5n4kq__mpip-wheel-:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.4
  creating build/lib.linux-x86_64-3.4/gevent
  copying gevent/wsgi.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/win32util.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/util.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/timeout.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/threadpool.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/threading.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/thread.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/subprocess.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/ssl.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/socket.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/server.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/select.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/resolver_thread.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/resolver_ares.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/queue.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/pywsgi.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/pool.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/os.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/monkey.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/lock.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/local.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/hub.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/greenlet.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/fileobject.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/event.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/coros.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/corecffi.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/core.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/baseserver.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/backdoor.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_util_py2.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_threading.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_tblib.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_sslgte279.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_ssl3.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_ssl2.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_socketcommon.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_socket3.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_socket2.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_semaphore.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_fileobjectcommon.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_fileobject3.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/_fileobject2.py -> build/lib.linux-x86_64-3.4/gevent
  copying gevent/__init__.py -> build/lib.linux-x86_64-3.4/gevent
  running build_ext
  configure: error: in `/tmp/pip-build-lfmpuicl/gevent/build/temp.linux-x86_64-3.4/libev':
  configure: error: cannot run C compiled programs.
  If you meant to cross compile, use `--host'.
  See `config.log' for more details
  Running '/bin/sh /tmp/pip-build-lfmpuicl/gevent/libev/configure > configure-output.txt' in /tmp/pip-build-lfmpuicl/gevent/build/temp.linux-x86_64-3.4/libev
  building 'gevent.core' extension
  creating build/temp.linux-x86_64-3.4/gevent
  gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-3.4/libev -Ilibev -I/usr/include/python3.4m -c gevent/gevent.corecext.c -o build/temp.linux-x86_64-3.4/gevent/gevent.corecext.o
  In file included from gevent/libev.h:2:0,
                   from gevent/gevent.corecext.c:256:
  libev/ev.c:45:22: fatal error: config.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for gevent
Failed to build gevent
Installing collected packages: gevent
  Running setup.py install for gevent
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lfmpuicl/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vc9d5rvj-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    running build_ext
    configure: error: in `/tmp/pip-build-lfmpuicl/gevent/build/temp.linux-x86_64-3.4/libev':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    Running '/bin/sh /tmp/pip-build-lfmpuicl/gevent/libev/configure > configure-output.txt' in /tmp/pip-build-lfmpuicl/gevent/build/temp.linux-x86_64-3.4/libev
    building 'gevent.core' extension
    gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-3.4/libev -Ilibev -I/usr/include/python3.4m -c gevent/gevent.corecext.c -o build/temp.linux-x86_64-3.4/gevent/gevent.corecext.o
    In file included from gevent/libev.h:2:0,
                     from gevent/gevent.corecext.c:256:
    libev/ev.c:45:22: fatal error: config.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-lfmpuicl/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vc9d5rvj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lfmpuicl/gevent
$ sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
Collecting gevent from git+https://github.com/gevent/gevent.git#egg=gevent
  Cloning https://github.com/gevent/gevent.git to ./pip-build-r29njtry/gevent
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.7 in /usr/lib/python3.4/site-packages (from gevent)
Installing collected packages: gevent
  Running setup.py install for gevent
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-r29njtry/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p8eus5wk-record/install-record.txt --single-version-externally-managed --compile:
    /usr/bin/python util/cythonpp.py -o gevent.corecext.c gevent/core.ppyx
    Running cython -o gevent.corecext.c gevent/core.pyx  # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
    Running cython -o gevent.corecext.c gevent/core.pyx  # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
    Running cython -o gevent.corecext.c gevent/core.pyx  # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
    Running cython -o gevent.corecext.c gevent/core.pyx  # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
    Running cython -o gevent.corecext.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
    Running cython -o gevent.corecext.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
    Reusing cython -o gevent.corecext.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
    Reusing cython -o gevent.corecext.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
    Generating gevent.corecext.c 1893690 bytes
    Saving gevent/core.pyx
    echo                          >> gevent.corecext.c
    echo '#include "callbacks.c"' >> gevent.corecext.c
    mv gevent.corecext.* gevent/
    cython -o gevent.ares.c gevent/ares.pyx
    mv gevent.ares.* gevent/
    cp gevent/_semaphore.pyx gevent/_semaphore.py
    cython -o gevent._semaphore.c gevent/_semaphore.py
    mv gevent._semaphore.* gevent/
    rm gevent/_semaphore.py
    cython -o gevent._util.c gevent/_util.pyx
    mv gevent._util.* gevent/
    Running 'make ' in /tmp/pip-build-r29njtry/gevent
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.4
    creating build/lib.linux-x86_64-3.4/gevent
    copying gevent/wsgi.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/win32util.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/util.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/timeout.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/threadpool.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/threading.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/thread.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/subprocess.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/ssl.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/socket.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/server.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/select.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/resolver_thread.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/resolver_ares.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/queue.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/pywsgi.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/pool.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/os.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/monkey.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/lock.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/local.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/hub.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/greenlet.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/fileobject.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/event.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/coros.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/corecffi.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/core.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/builtins.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/baseserver.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/backdoor.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_util_py2.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_threading.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_tblib.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_sslgte279.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_ssl3.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_ssl2.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_socketcommon.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_socket3.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_socket2.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_fileobjectposix.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_fileobjectcommon.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_fileobject3.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/_fileobject2.py -> build/lib.linux-x86_64-3.4/gevent
    copying gevent/__init__.py -> build/lib.linux-x86_64-3.4/gevent
    running build_ext
    configure: error: in `/tmp/pip-build-r29njtry/gevent/libev':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 383, in <module>
        run_setup(ext_modules, run_make=run_make)
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 377, in run_setup
        "Development Status :: 4 - Beta"]
      File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.4/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.4/distutils/command/install.py", line 539, in run
        self.run_command('build')
      File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.4/distutils/command/build.py", line 126, in run
        self.run_command(cmd_name)
      File "/usr/lib/python3.4/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.4/distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/usr/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions
        self.build_extension(ext)
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 247, in build_extension
        self.gevent_prepare(ext)
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 244, in gevent_prepare
        configure(self, ext)
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 150, in configure_libev
        rc = _system(libev_configure_command)
      File "/tmp/pip-build-r29njtry/gevent/setup.py", line 126, in _system
        return check_call(cmd, shell=True)
      File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '(cd  "/tmp/pip-build-r29njtry/gevent/libev"  && /bin/sh ./configure   && mv config.h "$OLDPWD") > configure-output.txt' returned non-zero exit status 1
    Running '(cd  "/tmp/pip-build-r29njtry/gevent/libev"  && /bin/sh ./configure   && mv config.h "$OLDPWD") > configure-output.txt' in /tmp/pip-build-r29njtry/gevent/build/temp.linux-x86_64-3.4/libev
    
    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-r29njtry/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p8eus5wk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-r29njtry/gevent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment