Installed clang++3.6 on Ubuntu, can't select as alternative

后端 未结 2 394
一个人的身影
一个人的身影 2021-01-30 17:47

I just installed clang++3.6 on my Ubuntu machine, but can\'t set it as the default c++ compiler.

sudo update-alternatives --config c++ 

tells

2条回答
  •  一个人的身影
    2021-01-30 18:28

    These work for me:

    sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-3.6 100
    sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.6 100
    

提交回复
热议问题