Results 1 to 2 of 2

Thread: Installation error. gcc failed with exit status 1

  1. #1
    Join Date
    Jan 2007
    Location
    Amsterdam, Nederland
    Beans
    815
    Distro
    Ubuntu Development Release

    Installation error. gcc failed with exit status 1

    I want to install a Python module (gevent) using the command below, which leads to the error belows. I don't understand why it leads to a gcc error. As far as I know gcc is installed.

    Does anybody know what's wrong here?

    Code:
    kramer@kramer-P5K:~$ sudo pip install gevent
    [sudo] password for kramer: 
    Downloading/unpacking gevent
      Running setup.py egg_info for package gevent
        
    Downloading/unpacking greenlet (from gevent)
      Running setup.py egg_info for package greenlet
        
    Installing collected packages: gevent, greenlet
      Running setup.py install for gevent
        building 'gevent.core' extension
        gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o build/temp.linux-i686-2.7/gevent/core.o
        In file included from gevent/core.c:253:0:
        gevent/libevent.h:9:19: fatal error: event.h: File or folder does not exist
        compilation terminated.
        error: command 'gcc' failed with exit status 1
        Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/kramer/build/gevent/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-vjwW2k-record/install-record.txt:
        running install
    
    running build
    
    running build_py
    
    running build_ext
    
    building 'gevent.core' extension
    
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o build/temp.linux-i686-2.7/gevent/core.o
    
    In file included from gevent/core.c:253:0:
    
    gevent/libevent.h:9:19: fatal error: event.h: File or folder does not exist.
    
    compilation terminated.
    
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
    Command /usr/bin/python -c "import setuptools;__file__='/home/kramer/build/gevent/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-vjwW2k-record/install-record.txt failed with error code 1
    Storing complete log in /home/kramer/.pip/pip.log

  2. #2
    Join Date
    Jan 2007
    Location
    Amsterdam, Nederland
    Beans
    815
    Distro
    Ubuntu Development Release

    Re: Installation error. gcc failed with exit status 1

    Nevermind. Just found the answer. I had to install libevent-dev like so:

    apt-get install libevent-dev

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •