asus@asusLaptop:/home/linuxbrew/.linuxbrew/Cellar/chapel/1.33.0/libexec/examples$ chpl -L/usr/lib/x86_64-linux-gnu/libstdc++.so.6 hello3-datapar.chpl /usr/bin/ld: cannot find -lstdc++ clang-15: error: linker command failed with exit code 1 (use -v to see invocation) error: Make Binary - Linking
asus@asusLaptop:~$ ls /usr/lib32 | grep -i stdc++ libstdc++.so.6 libstdc++.so.6.0.32 asus@asusLaptop:~$ ls /usr/lib | grep -i stdc
sudo apt install build-essential? – Daniel T Jan 28 '24 at 09:55clang-15? If you installed the Ubuntuclangpackage from the repositories, then it should have automatically installed thelibstdc++6as a dependency. What is your Ubuntu version? – steeldriver Jan 28 '24 at 13:42-Largument should "Specify a C library search path on the C compiler command line." That's not what you're doing. – zwets Jan 28 '24 at 20:23asus@asusLaptop:~$ clang-15 --version
Command 'clang-15' not found, but can be installed with:
sudo apt install clang-15
asus@asusLaptop:~$ sudo apt install clang-15 [sudo] password for asus: Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package clang-15
how to install clang in ubuntu 20.04
– Ananya Hazarika Jan 29 '24 at 15:21