Ubuntu 12.04, installed two versions of compiler 3 and 3.8. How to choose that 3.8 was default?
$ sudo update-alternatives --config clang
update-alternatives: error: no alternatives for clang.
Ubuntu 12.04, installed two versions of compiler 3 and 3.8. How to choose that 3.8 was default?
$ sudo update-alternatives --config clang
update-alternatives: error: no alternatives for clang.
How did you install two versions of clang and which one is now on the way?
which clang
Configuring via update-alternatives is a good idea, you can add an entry yourself:
sudo update-alternatives --install $(which clang) clang /path/to/actual/binary 1000000
1,000,000 - recording priority
Source: https://ru.stackoverflow.com/questions/538752/
All Articles