From: James Mills on
2010/4/29 sanam singh <sanamsingh(a)hotmail.com>:
> hi,
> i am am facing problem in installing python 2.6 on ubuntu 9.04. When i sudo
> make i get following error :

You need to install the necessary development
headers/libraries required to build Python from source.

eg:

$ sudo apt-get install gdbm-dev

[ snip ]

cheers
James
From: James Mills on
2010/4/29 sanam singh <sanamsingh(a)hotmail.com>:
> hi,
> it is saying
> sanam(a)ubuntu:~/Desktop/Python-2.6.5$ sudo apt-get install gdbm-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Couldn't find package gdbm-dev

I'm sorry, but I don't actively use Debian/ubuntu based systems.

Please consult your package manager and search for
the "right package" to install.

"You need to install the development packages"

cheers
James
From: Peter Otten on
James Mills wrote:

> 2010/4/29 sanam singh <sanamsingh(a)hotmail.com>:
>> hi,
>> it is saying
>> sanam(a)ubuntu:~/Desktop/Python-2.6.5$ sudo apt-get install gdbm-dev
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> E: Couldn't find package gdbm-dev
>
> I'm sorry, but I don't actively use Debian/ubuntu based systems.
>
> Please consult your package manager and search for
> the "right package" to install.
>
> "You need to install the development packages"

The right package is probably

$ sudo aptitude install libgdbm-dev

My primitive method of looking for candidates is

$ aptitude search dbm | grep dev

and I just learned that

$ aptitude search .*dbm.*dev

also works.

Peter