How can I switch from clang11 to clang14 on freebsd?

29 Views Asked by At

hello on my server clang 11.0.1 version is installed but my project is compiled with clang14, when I write the command " pkg install clang14 " I get an error like clang14 not found.

please help me solve this problem, thank you.

enter image description here

I tried to download clang14 from llvm web page but I couldn't install it :(

1

There are 1 best solutions below

0
Rob On

clang is part of llvm. There is no package for clang alone. Instead, install llvm14.

But you should first deinstall llvm11 if you no longer need it.

pkg delete llvm11