Install Python2.6

I am trying to install python 2.6 on LinuxMint. I ran into a few problems.

The first thing I did was download Python2.6.8 from the python site

Then I extracted the files, launched

./configure --prefix=/opt/python-2.7.3 --with-threads --with-signal-module --with-pydebug

I found here here , which I found here

When I run the command make, I get the following errors:

Failed to find the necessary bits to build these modules:
_bsddb             _curses            _curses_panel   
_hashlib           _sqlite3           _ssl            
bsddb185           bz2                dbm             
dl                 gdbm               imageop         
linuxaudiodev      ossaudiodev        readline        
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module name.


Failed to build these modules:
crypt              nis                                

I installed all the packages mentioned on the Cheater page. I successfully installed python2.6 without all the options that I talked about, but I cannot get the bz2 module to work.

+5
source share
1 answer

I think that you are probably missing a few development packages. Make sure you have:

dpkg -l libreadline-dev
dpkg -l zlib1g-dev
dpkg -l libssl-dev

, python , ubuntu ( , Mint by extension). setup.py , , , python2.4 ubuntus ( , , , - 2.6):

diff -urNad python2.4-2.4.6-natty~/setup.py python2.4-2.4.6-natty/setup.py
--- python2.4-2.4.6-natty~/setup.py 2011-07-27 14:42:03.000000000 +0200
+++ python2.4-2.4.6-natty/setup.py  2011-07-27 15:03:35.000000000 +0200
@@ -269,6 +269,7 @@
         lib_dirs = self.compiler.library_dirs + [
             '/lib64', '/usr/lib64',
             '/lib', '/usr/lib',
+            '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu',
             ]
         inc_dirs = self.compiler.include_dirs + ['/usr/include']
         exts = []

, , debian .

ppa

+4

All Articles