问题:在ubuntu18.4.0里面使用 sudo apt install gcc,最高只能安装到gcc8, 但是onnxruntime(C++)库的安装需要gcc>=9
解决方法
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9
If the add-apt-repository command cannot be found, run this:
sudo apt install software-properties-common
Above commands install just c compiler, if you need c++ compiler (g++) too
sudo apt install g+±9