Ubuntu – clang and clang++ not found after installing the clang-3.5 package

14.04aptclang

After installing the clang-3.5 package, typing clang or clang++ on the command line gives me a message stating which packages those programs can be found in. Attempting to run the install of clang-3.5 again, apt states it's already installed and at the latest version.

The original install was done with the command:

sudo apt-get install clang-3.5 llvm

build-essential was installed previously.

Any ideas on what may have happened?

Best Answer

It's there, but it's still called clang-3.5.

You can either execute it as clang-3.5 (or clang++-3.5) or setup a symlink to it like I did (installing regular clang didn't work):

sudo ln -s /usr/bin/clang-3.5 /usr/bin/clang
sudo ln -s /usr/bin/clang++-3.5 /usr/bin/clang++

Ugly work-around, perhaps; but at least it works for now :)