Getting "Failed to create these modules: _curses _curses_panel _ssl" when installing python 2.6.5

I am new to python and ubuntu. I am trying to install python 2.6.5 on ubuntu 12.10. I already have python 2.7.3 and I'm trying to install 2.6.5 next to existing python. When making make, the following error appears:

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 name.

Failed to build these modules:
_curses            _curses_panel      _ssl

My biggest concern is the _ssl module. I used. / configure --with-ssl, as mentioned in another post , but the message remains the same. Any pointers appreciated.

Extra note: use to complain that he couldn't build bz2 either, but I found that

updated python 2.6.8 without ssl v2 support. Now I'm trying to make changes to source 2.6.5.

2: 2.6.5 , , ssl v2 _ssl. , , :

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

make:

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 name.

Failed to build these modules:
_curses            _curses_panel

running build_scripts

3:. , , . , , , libncursesw5-dev ( , ). _curses _curses_panel, :

apt-get install libncurses-dev

libncurses-dev : make clean,./configure --with-ssl, make.

make:

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 name.

running build_scripts
+4
2

, , ; - ...

80%:

, .

, dpkg libssl, libssl-dev, _ssl. Ubuntu sudo apt-get install libssl-dev . - libssl-devel, ssl-dev .. pacakages : , foo, foo , foo, foo.

, , , , , Ubuntu, , .

+2

pythong 2.6.5 ubuntu 12.10:

1.) ( ):

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 libncurses-dev

2.) bz2:

a.) bz2 http://www.bzip.org/downloads.html. b.) Makefile cc=gcc 'cc = gcc -fPIC` . .) make make install. d.) bz2 :   python -c "import bz2; print bz2. doc"

3.) _ssl:

a.) ssl, ssl v2 python. Michael Schurter. .

4.) Python 2.6.5 make altinstall, python. /usr/bin/python python. .

5.) ez_setup:   curl -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py  python ez_setup.py

6.) pip:   easy_install -U pip

7.) setuptools:   pip install setuptools

, !

+2

All Articles