If you are using Ubuntu (are any derivative, e.g. Lubuntu) it seems likely to happen that you get the following error message when compiling with 'nrnivmodl':
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
In this case there's only one missing package to install:
-> Open the Package Manager (Synaptic)
-> Search for 'libncurses'
-> Install development library, e.g. 'libncurses5-dev'
-> Try to compile again!
This solution worked for me! Good luck!