Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting "Failed to build these modules: _curses _curses_panel _ssl" while installing python 2.6.5
    primarykey
    data
    text
    <p>I'm new to python and ubuntu. I'm trying to install python 2.6.5 on ubuntu 12.10. I already have python 2.7.3 and am trying to install 2.6.5 side by side the existing python. I get the following error when executing make:</p> <pre><code>Failed to find the necessary bits to build these modules: _bsddb bsddb185 dl imageop linuxaudiodev ossaudiodev sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _curses _curses_panel _ssl </code></pre> <p>I am most worried about the _ssl module. I used ./configure --with-ssl, as mentioned <a href="https://stackoverflow.com/questions/5128845/importerror-no-module-named-ssl">in another post</a>, but the message is still the same. Any pointers appreciated.</p> <p>Additional note: make used to complain that it could not build bz2 either, but I fixed that <a href="http://matrafox.info/problem-with-ffmpeg-usrlocalliblibbz2-a-could-not-read-symbols-bad-value.html" rel="nofollow noreferrer">with this post entry</a> recompiling bzip2. Now it's down to _ssl. I'm not sure if I need _curses.</p> <p><strong>Edit:</strong> Found make log file and it looks like this is due to the fact that python 2.6.5 supports ssl v2, while this support was removed in Ubuntu. Log file contains:</p> <pre><code>*** WARNING: renaming "_ssl" since importing it failed: build/lib.linux-x86_64-2./_ssl.so: undefined symbol: SSLv2_method </code></pre> <p><a href="http://blog.schmichael.com/2012/05/29/building-python-2-6-8-on-ubuntu-12-04/" rel="nofollow noreferrer">This blog</a> has python 2.6.8 rebuilt without the ssl v2 support. I'm trying their changes in the 2.6.5 source now.</p> <p><strong>Edit 2:</strong> Modifying 2.6.5 sources as noted above and removing ssl v2 support fixed the problem with _ssl module not building. Also, here is a list of packages I tried installing earlier:</p> <pre><code>apt-get install libreadline-dev apt-get install libssl-dev (already installed) apt-get install libbz2-dev (already installed) apt-get install build-essential (already installed) apt-get install sqlite3 apt-get install tk-dev apt-get install libsqlite3-dev apt-get install libc6-dev (already installed) apt-get install libgdbm-dev apt-get install libncursesw5-dev </code></pre> <p>Here is full output from make:</p> <pre><code>running build running build_ext building '_curses' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict prototypes -I. -I/tmp/nimbula/Python-2.6.5/./Include -I. -IInclude -I./Include -I/usr/local/include -I/tmp/nimbula/Python-2.6.5/Include -I/tmp/nimbula/Python-2.6.5 -c /tmp/nimbula/Python-2.6.5/Modules/_cursesmodule.c -o build/temp.linux-x86_64-2.6/tmp/nimbula/Python-2.6.5/Modules/_cursesmodule.o building '_curses_panel' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/tmp/nimbula/Python-2.6.5/./Include -I. -IInclude -I./Include -I/usr/local/include -I/tmp/nimbula/Python-2.6.5/Include -I/tmp/nimbula/Python-2.6.5 -c /tmp/nimbula/Python-2.6.5/Modules/_curses_panel.c -o build/temp.linux-x86_64-2.6/tmp/nimbula/Python-2.6.5/Modules/_curses_panel.o Failed to find the necessary bits to build these modules: _bsddb bsddb185 dl imageop linuxaudiodev ossaudiodev sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _curses _curses_panel running build_scripts </code></pre> <p><strong>Edit 3:</strong> Yay, thank you guys for asking these questions. When I looked at the packages I installed earlier, one was clearly not looking good, the libncursesw5-dev (since it has a version in it and I got it from an old post). I tried the following and it solved the problem of _curses and _curses_panel not building:</p> <pre><code>apt-get install libncurses-dev </code></pre> <p>After installing libncurses-dev, I executed: make clean, ./configure --with-ssl, make.</p> <p>Now the output from make is:</p> <pre><code>running build running build_ext Failed to find the necessary bits to build these modules: _bsddb bsddb185 dl imageop linuxaudiodev ossaudiodev sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. running build_scripts </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload