problem with installing python module / gcc

January 4, 2014 4k views
Hello, i'm trying to install python module(twisted) which requires gcc to be installed. I'm very newbie to all server things, I've install gcc by using "yum install gcc" and then I tried to install "twisted" again. The console has thrown this line: twisted/runner/portmap.c:55: warning: implicit declaration of function ‘Py_InitModule’ twisted/runner/portmap.c:55: error: ‘PortmapMethods’ undeclared (first use in this function) twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once twisted/runner/portmap.c:55: error: for each function it appears in.) error: command 'gcc' failed with exit status 1 ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/Twisted/';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-zzFLEI-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/Twisted Traceback (most recent call last): File "/usr/bin/pip", line 9, in load_entry_point('pip==1.5', 'console_scripts', 'pip')() File "/usr/lib/python2.6/site-packages/pip/", line 185, in main return command.main(cmd_args) File "/usr/lib/python2.6/site-packages/pip/", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 49: ordinal not in range(128) How can I fix this? Thank you for help
1 Answer
Got through this!
To get it working i've created new droplet on ubuntu. Then upgrade your apt-get to newest version, and type this:
sudo apt-get install libxml2-dev libxslt-dev

Have another answer? Share your knowledge.