I just installed clang 3.6. What is the good way to set the system to use the new version. For example, it is installed into /usr/lib/llvm-3.6
directory, but if I am in home directory, and type in clang
, it tells me that clang is not installed. So to solve the problem I add the clang bin directory to the path in .bashrc, like so export PATH=$PATH:/usr/lib/llvm-3.6/bin/:/usr/lib/llvm-3.6/lib
. That seems to work but it is a bit of a pain, because I use fish and bash, and now I have to add path to both. Is there a better way to configure the system to use the desired llvm banaries? I searched update-alternatives
but I am not sure I understand how to use it correctly.
Thanks.