Clang++ on Jammy after do-release-upgrade

Jeffrey Walton noloader at gmail.com
Wed Nov 23 22:59:56 UTC 2022


Hi Everyone,

I'm having trouble getting clang++ installed on Jammy (error below). I
got to Jammy from a Focal do-release-upgrade. On Focal g++ and clang++
worked as expected. gcc and g++ works as expected on Jammy.

It looks like libc++ is not wired up correctly (error below).

I've already performed an 'apt-get remove --purge 'clang*' followed by
an 'apt-get install clang'. No joy.

What is needed to install clang++ on Jammy after a do-release-upgrade?

Thanks in advance.

---------------

$ apt-cache search clang++
clang - C, C++ and Objective-C compiler (LLVM based), clang binary
...

$ command -v clang++
/usr/bin/clang++

$ clang++ -g2 -O3 -fPIC -pipe -c cryptlib.cpp
In file included from cryptlib.cpp:3:
In file included from ./pch.h:14:
In file included from ./config.h:22:
In file included from ./config_align.h:27:
./config_cxx.h:37:10: fatal error: 'string' file not found
#include <string>
         ^~~~~~~~
1 error generated.

$ update-alternatives --list clang++
update-alternatives: error: no alternatives for clang++



More information about the ubuntu-users mailing list