@ginggs g++-4.9.real belongs to package "hardening-wrapper", which is not installed by default nowadays. I installed it and then it works.
ls results before installing "hardening-wrapper" $ ls -l /usr/bin/gcc* lrwxrwxrwx 1 root root 5 Aug 1 21:32 /usr/bin/gcc -> gcc-5 -rwxr-xr-x 1 root root 837944 Aug 27 00:25 /usr/bin/gcc-4.9 -rwxr-xr-x 1 root root 886968 Sep 15 22:34 /usr/bin/gcc-5 lrwxrwxrwx 1 root root 8 Aug 1 21:32 /usr/bin/gcc-ar -> gcc-ar-5 -rwxr-xr-x 1 root root 26968 Aug 27 00:25 /usr/bin/gcc-ar-4.9 -rwxr-xr-x 1 root root 26976 Sep 15 22:34 /usr/bin/gcc-ar-5 lrwxrwxrwx 1 root root 8 Aug 1 21:32 /usr/bin/gcc-nm -> gcc-nm-5 -rwxr-xr-x 1 root root 26968 Aug 27 00:25 /usr/bin/gcc-nm-4.9 -rwxr-xr-x 1 root root 26976 Sep 15 22:34 /usr/bin/gcc-nm-5 lrwxrwxrwx 1 root root 12 Aug 1 21:32 /usr/bin/gcc-ranlib -> gcc-ranlib-5 -rwxr-xr-x 1 root root 26968 Aug 27 00:25 /usr/bin/gcc-ranlib-4.9 -rwxr-xr-x 1 root root 26976 Sep 15 22:34 /usr/bin/gcc-ranlib-5 $ ls -l /usr/bin/g++* lrwxrwxrwx 1 root root 5 Aug 1 21:32 /usr/bin/g++ -> g++-5 -rwxr-xr-x 1 root root 837944 Aug 27 00:16 /usr/bin/g++-4.9 -rwxr-xr-x 1 root root 886968 Sep 15 21:40 /usr/bin/g++-5 -rwxr-xr-x 1 root root 288 Sep 28 2014 /usr/bin/g++-libc++ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1497663 Title: It seems that CUDA does not work in Wily (at least for Quadro FX 570M) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1497663/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs