I have tried everything I can think of to get this to work, to no avail so here I am requesting suggestions on how to debug.
Firstly, runnning Ubuntu 11.10
I
You may try a workarround installing the package libreadline5-dev. I gess the libreadline6-dev is not working right now.