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/setup.py’;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 <module> load_entry_point(‘pip==1.5’, ‘console_scripts’, ‘pip’)() File “/usr/lib/python2.6/site-packages/pip/init.py”, line 185, in main return command.main(cmd_args) File “/usr/lib/python2.6/site-packages/pip/basecommand.py”, 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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Got through this!
<br>To get it working i’ve created new droplet on ubuntu. Then upgrade your apt-get to newest version, and type this:
<br>sudo apt-get install libxml2-dev libxslt-dev
<br>
<br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.