It is already installed on kaixhin/cuda-torch and latest cudnn does not work with old cunn.
tput: No value for $TERM and no -T specified