Hey knudfl,
I resolved the issue without applying the patch you had forward me ...
Solution : ubuntu does not install ncurses library by default so after installing them and restarting the system i was able to resolve the error.
Require to install libncurses5-dev ( which install the necessary library for development )
Thanx for your help