[Tutor] how to compile python3.0

Dayo Adewunmi contactdayo at gmail.com
Fri Apr 24 12:54:57 CEST 2009


Shaofeng NIu wrote:
> I tried to compile and install python3.0 from source,but after 
> "make",it shows:
>
> Python build finished, but the necessary bits to build these modules 
> were not found:
> _dbm               _gdbm              _hashlib       
> _sqlite3           _ssl               _tkinter       
> bz2                readline                          
> To find the necessary bits, look in setup.py in detect_modules() for 
> the module's name.
>
> Could anybody tell me how to install these modules?Thank you!
> My OS is Ubuntu 8.10
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>   

This worked for me on Ubuntu 8.04:

$ sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc

Solution for _dbm
$ wget -c http://bugs.python.org/file12234/dbm.diff
$ patch -p0 < dbm.diff

$ sudo apt-get build-dep python2.5
$ make
$ sudo make install

Regards

Dayo


More information about the Tutor mailing list