• Register
0 votes
788 views

Problem :

I am trying to install the visual studio code on the Ubuntu VM also I am using c++. But I am facing the following error message which is often covering my pages tab at the top and it is very frustrating:

Please install [clang](http://clang.llvm.org/) or check configuration `clang.executable`

I tried to install the clang using following command apt-get install llvm.

I have also installed the C++ support from the required packages.

I am now completely confused have anyone ever faced the above error and have the solution on it ?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I think the clang is not correctly installed on the ubuntu box.

Please try to Install clang by following commands:

sudo apt-get install clang
clang -v //Please check the installed version

Now your error must be fixed.

OR

I also had faced the same problem in recent past and also solved it with the below steps:

1.  I had firstly installed the llvm plus clang which is available on the following link http://releases.llvm.org/

2.  After that I had installed the C++ language adapter which is available on the following link https://marketplace.visualstudio.com/items?itemName=mitaki28.vscode-clang

3.  Lastly I configured the path of the llvm/bin folder installed in Step 1 above and in the visual studios code that has the 'user settings', with the help of clang.executable: variable. After that please refer to the Step 2 from 'configuration' section explained in the above url.

9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
Problem: I'm on Ubuntu 17.10. I installed VSC and so far happier than when I was on Eclipse, but have hit a snag. I'm trying to include a .h file, but getting an error WiFi.h not found. I've got the "includePath" set to include this file location, but still getting ... the project I'm working on, but so are some of the other include .h files, so I don't think this makes any difference.... Thanks!
asked Apr 25 Moumita Bhowmick 12.9k points
0 votes
1 answer 57 views
57 views
Problem : I want to run the NVCC to compile my CUDA program on my Mac. But when I try to run the NVCC, I am facing below error message: "nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported". I tried updating the XCode version to 7.3, and the Mac version to 10.11.4. But I am facing the same error. How can I revert my Apple Clang Version?
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 3 views
3 views
Problem: when declaring the function 'sum', I'm not including the param. type, so an error is expected, but the actual message Clang gives me is this: ind.c:4:9: error: a parameter list without types is only allowed in a function definition
asked Apr 19 ummesalma 29.2k points
0 votes
1 answer 4 views
4 views
Problem: Our organisation required us to add 2FA to github. Unfortunately, now we cant commit our work in visual studio code. VSCode prompts for username and password. It doesnt know about 2FA. There are some very old posts saying to use a personal access token (PAT), e ... anyone know which of the "scopes" is required for VSCode? I just ticked "repo". Could this be the problem, are more required?
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 7 views
7 views
Problem: I have downloaded Visual Studio Code for the first time but I keep getting message below: "Visual Studio Code" can't be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information. My ... me the same message. Looking into their FAQ, I read about reinstalling VS Code. I did that but it still doesn't work.
asked May 2 ochena 23.3k points
0 votes
1 answer 4 views
4 views
Problem: Downloaded latest build of Visual Studio Code 1.41 and get" “Visual Studio Code 2.app” can’t be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information. Am I missing something obvious?
asked Apr 25 ochena 23.3k points
0 votes
1 answer 10 views
10 views
Problem: I have downloaded Visual Studio Code for the first time but I keep getting message below: "Visual Studio Code" can't be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information. My ... me the same message. Looking into their FAQ, I read about reinstalling VS Code. I did that but it still doesn't work.
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 22 views
22 views
Problem: Any help, URGENT: No installed build tools found. install the android build tools version 19.1.0 or higher.
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.2K views
2.2K views
Problem : I am trying to learn the Android and Ionic. If I run the ionic build android command in the root of the ionic project, I am facing below error: FAILURE: Build failed with an exception. Where: Script '/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova. ... Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
asked Feb 18, 2020 mphil 2.3k points
0 votes
1 answer 3 views
3 views
Problem: Can anyone please point me in the right direction > Which configuration setting is used to specify the memory eviction policy in redis
asked Apr 25 ummeshani 10.8k points