Error installing cuda10.1_update2_10.1.243 on linux

i ran into problem while try to install cuda10.1_update2_10.1.243 runfile,
error is ,
Failed to load required ncurses libraries
, the log file cuda-installer.log is
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc
[INFO]: gcc version: gcc version 12.2.0 (GCC)
[ERROR]: unsupported compiler version: 12.2.0. Use --override to override this check.

,then i used flag --override, then the error is the same ‘Failed to load required ncurses libraries’ and log is
[INFO]: Setting toolkit=true
[INFO]: Overriding compiler check
[INFO]: Initializing menu.

  • how should i install cuda 10.1 update2 on linux using runfile ?

This is probably indicating that you’re installing on a later version Linux distro than 10.1u2 is qualified on. It looks like you may also need to install ncurses.

The key to a smooth installation is to follow the OS/software version requirements, as laid out in the Install Guide for the Toolkit you are installing, along with all the instructions pre and post installation.