Clion cannot find cmake of wsl2 in the toochains, which i've installed all of them.


Chaintools can find ubuntu but cannot find others like cmake and gdb, and when i try to config the directory of cmake it shows "File of an unknown type".


I am using:

  • - Windows 11 22H2
  • - WSL2 : Ubuntu 22.04.2 LTS


The issue was resolved in email correspondence.

First,  /mnt/c/Users/leochane/AppData/Local/Microsoft/WindowsApps/ubuntu.exe should have been removed from the Environment file field. 

Secondly, the issue with CMake appeared and was resolved by the user:

When i click `more` it tells me that `/usr/bin/cmake: /usr/local/lib/ version `GLIBCXX_3.4.30' not found (required by /usr/bin/cmake)`, then i found the `` under the directory of `/usr/local/lib` links to an old version of libstd++. So i change the links then it finally works!