Help please - pip install gevent 1.0 doesn't work on Centos 5.8 (final)

645 views
Skip to first unread message

opensourcegeek

unread,
Apr 1, 2014, 6:08:24 PM4/1/14
to gev...@googlegroups.com

Hi guys,

I tried installing gevent on a centos 5.8 box couldn't get it to install for some reason. I can install gevent 0.13.8 no problem though obviously that doesn't depend on libev.

Using gcc, gcc.x86_64 4.1.2-54.el5. Following is the output running pip install gevent==1.0. Thanks

pip install gevent==1.0
Downloading/unpacking gevent==1.0
Downloading gevent-1.0.tar.gz (1.4MB): 1.4MB downloaded
Running setup.py egg_info for package gevent

Downloading/unpacking greenlet (from gevent==1.0)
Downloading greenlet-0.4.2.zip (74kB): 74kB downloaded
Running setup.py egg_info for package greenlet

Installing collected packages: gevent, greenlet
Running setup.py install for gevent
configure: error: in /opt/virtual_py/test/build/gevent/build/temp.linux-x86_64-2.7/libev':
configure: error: C compiler cannot create executables
See
config.log' for more details
Running '/bin/sh /opt/virtual_py/test/build/gevent/libev/configure > configure-output.txt' in /opt/virtual_py/test/build/gevent/build/temp.linux-x86_64-2.7/libev
building 'gevent.core' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-2.7/libev -Ilibev -I/opt/python2.7/include/python2.7 -c gevent/gevent.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o
In file included from gevent/libev.h:2,
from gevent/gevent.core.c:302:
libev/ev.c:45:22: error: config.h: No such file or directory
libev/ev.c:467:48: warning: "/" within comment
In file included from gevent/libev.h:2,
from gevent/gevent.core.c:302:
libev/ev.c:1311: warning: ‘ev_default_loop_ptr’ initialized and declared ‘extern’
In file included from gevent/libev.h:2,
from gevent/gevent.core.c:302:
libev/ev.c: In function ‘ev_io_start’:
libev/ev.c:3332: warning: suggest parentheses around arithmetic in operand of |
libev/ev.c:4563:27: warning: "/
" within comment
libev/ev.c:4564:27: warning: "/*" within comment
error: command 'gcc' failed with exit status 1
Complete output from command /opt/virtual_py/test/bin/python -c "import setuptools;file='/opt/virtual_py/test/build/gevent/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t4Y_l9-record/install-record.txt --single-version-externally-managed --install-headers /opt/virtual_py/test/include/site/python2.7:
running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/gevent

copying gevent/ssl.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/socket.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/init.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/coros.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/subprocess.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/hub.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/threadpool.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/util.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/pool.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/monkey.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/os.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/threading.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/fileobject.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/baseserver.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/server.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/pywsgi.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/lock.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/queue.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/thread.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/win32util.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/greenlet.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/event.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/resolver_ares.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/_threading.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/select.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/resolver_thread.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/timeout.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/local.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/backdoor.py -> build/lib.linux-x86_64-2.7/gevent

copying gevent/wsgi.py -> build/lib.linux-x86_64-2.7/gevent

running build_ext

configure: error: in `/opt/virtual_py/test/build/gevent/build/temp.linux-x86_64-2.7/libev':

configure: error: C compiler cannot create executables

See `config.log' for more details

Running '/bin/sh /opt/virtual_py/test/build/gevent/libev/configure > configure-output.txt' in /opt/virtual_py/test/build/gevent/build/temp.linux-x86_64-2.7/libev

building 'gevent.core' extension

creating build/temp.linux-x86_64-2.7/gevent

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-2.7/libev -Ilibev -I/opt/python2.7/include/python2.7 -c gevent/gevent.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o

In file included from gevent/libev.h:2,

             from gevent/gevent.core.c:302:

libev/ev.c:45:22: error: config.h: No such file or directory

libev/ev.c:467:48: warning: "/*" within comment

In file included from gevent/libev.h:2,

             from gevent/gevent.core.c:302:

libev/ev.c:1311: warning: ‘ev_default_loop_ptr’ initialized and declared ‘extern’

In file included from gevent/libev.h:2,

             from gevent/gevent.core.c:302:

libev/ev.c: In function ‘ev_io_start’:

libev/ev.c:3332: warning: suggest parentheses around arithmetic in operand of |

libev/ev.c:4563:27: warning: "/*" within comment

libev/ev.c:4564:27: warning: "/*" within comment

error: command 'gcc' failed with exit status 1


Cleaning up...
Command /opt/virtual_py/test/bin/python -c "import setuptools;file='/opt/virtual_py/test/build/gevent/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t4Y_l9-record/install-record.txt --single-version-externally-managed --install-headers /opt/virtual_py/test/include/site/python2.7 failed with error code 1 in /opt/virtual_py/test/build/gevent
Traceback (most recent call last):
File "/opt/virtual_py/test/bin/pip", line 9, in 
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/opt/virtual_py/test_jsf_refactor_1/lib/python2.7/site-packages/pip/init.py", line 148, in main
return command.main(args[1:], options)
File "/opt/virtual_py/test/lib/python2.7/site-packages/pip/basecommand.py", line 169, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 30: ordinal not in range(128)

opensourcegeek

unread,
Apr 5, 2014, 10:49:39 AM4/5/14
to gev...@googlegroups.com

Forgot to update this thread - I have gevent==1.0 running now, I had to update glibc and it was happy to build libev after that.
Reply all
Reply to author
Forward
0 new messages