WebFaction
Community site: login faq

When trying to install gevent on my webfaction server:

easy_install-2.7 gevent

I get the following error, usually some basic google searcher tacle these type of errors, but no luck this time:

Searching for gevent
Reading https://pypi.python.org/simple/gevent/
Best match: gevent 1.0.1
Downloading https://pypi.python.org/packages/source/g/gevent/gevent-1.0.1.tar.gz#md5=7b952591d1a0174d6eb6ac47bd975ab6
Processing gevent-1.0.1.tar.gz
Writing /tmp/easy_install-PM35Tb/gevent-1.0.1/setup.cfg
Running gevent-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PM35Tb/gevent-1.0.1/egg-dist-tmp-yclkCg
Running '/bin/sh /tmp/easy_install-PM35Tb/gevent-1.0.1/libev/configure > configure-output.txt' in /tmp/easy_install-PM35Tb/gevent-1.0.1/build/temp.linux-x86_64-2.7/libev
configure: error: in `/tmp/easy_install-PM35Tb/gevent-1.0.1/build/temp.linux-x86_64-2.7/libev':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
In file included from gevent/libev.h:2,
                 from gevent/gevent.core.c:313:
libev/ev.c:45:22: error: config.h: No such file or directory
libev/ev.c:477:48: warning: "/*" within comment
In file included from gevent/libev.h:2,
                 from gevent/gevent.core.c:313:
libev/ev.c:1531: warning: âev_default_loop_ptrâ initialized and declared âexternâ
In file included from gevent/libev.h:2,
                 from gevent/gevent.core.c:313:
libev/ev.c: In function âev_io_startâ:
libev/ev.c:3554: warning: suggest parentheses around arithmetic in operand of â|â
libev/ev.c:4795:27: warning: "/*" within comment
libev/ev.c:4796:27: warning: "/*" within comment
error: Setup script exited with error: command 'gcc' failed with exit status 1

How could I fix this? Thanks in advance!

asked 23 Nov '14, 22:08

agregorian
1124
accept rate: 0%


You have to manually install from source code so you can properly define path.

permanent link

answered 23 Nov '14, 22:33

johns
5.3k312
accept rate: 23%

Thanks for the fast response, worked like a charm! Thanks!!

This worked for me, don't know if the build was actually neede:

mkdir -p $HOME/tmp
export TEMPDIR=$HOME/tmp
wget https://pypi.python.org/packages/source/g/gevent/gevent-1.0.1.tar.gz
tar -xzf gevent-1.0.1.tar.gz
cd gevent-1.0.1/
python2.7 setup.py build
python2.7 setup.py install
permanent link

answered 23 Nov '14, 22:46

agregorian
1124
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×15
×4

question asked: 23 Nov '14, 22:08

question was seen: 6,775 times

last updated: 23 Nov '14, 22:46

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM