Reputation:
I am using linux mint 18.1. I didn't install clang by apt tool but downloaded a Pre-Built Binaries edition from LLVM Releases. It's newer and includes libc++.
Anyway, after downloading, I moved them to "/usr/local". Command "clang -v" tells me some information about clang.
vita-nove@Alienware ~ $ clang -v
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.0.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.0.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
So I think it was set down correctly. Problem is here: I can not use "cc" command, bash shows:
The program 'cc' can be found in the following packages:
* gcc
* clang
* tcc
Try: sudo apt install <selected package>
Can anyone tell me what I have missed?
Upvotes: 0
Views: 1405
Reputation: 34411
Usually cc
is just a symlink to gcc
/clang
. You can create it yourself using ln -s
, if you really need that, but I doubt there is any difference in Clang's behavior when it is ran as cc
or as clang
.
Upvotes: 1