Personally i dont know what i just did, but these are the effects of commands you wrote on my pc, if that means anything to you...
$ which ld
$ dpkg -l binutils
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
ii binutils 2.23.2-2ubun amd64 GNU assembler, linker and binary
~$ find /usr/lib -name 'libncurses.so'
Also i upgraded ubuntu to the newest version hoping it to fix the problem but unfortunetly it didnt.
it means that i already got ncurses but the problem remains
$ sudo apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.