• Register
0 votes

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.


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 44 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 1.8K 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 102 views
Problem : I am very new to phpmyadmin. I often face below error if I try to access my localhost/phpmyadmin: “Wrong permissions on configuration file, should not be world writable!” I have already done the chmoded on my every file to 555 from 777. I am using Ubuntu 11.04. How can I fix above error ?
asked Feb 27, 2020 mphil 2.3k points
0 votes
1 answer 942 views
Problem : I run sudo pip install git-review, and get the following error cannot fetch index base url https://pypi.python.org/simple/
asked Oct 22, 2019 peterlaw 6.9k points
0 votes
1 answer 77 views
Problem : I am newly installing the Oracle XE database on my Ubuntu by following below steps: Downloaded the latest rpm file for the Oracle XE and ran below commands to install my database: sudo apt-get install alien alien oracle-xe-11.2.0-1.0.x86_64.rpm ... to start my database then I am facing below error “Ora-00205: error in identifying control file, check alert log for more info”
asked Jan 29, 2020 jwilliam 3.9k points
0 votes
1 answer 2 views
Problem : Cannot read property 'thisCompilation' of undefined in Visual Code
asked 13 hours ago Shovo210 2.1k points
0 votes
1 answer 364 views
Problem : I am getting bellow error while I'm trying to use visual studio code for Java. this version of the java runtime only recognizes class file versions up to 52.0
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 147 views
Problem : I am facing following error while importing the Tensorflow. >>> import tensorflow Traceback (most recent call last): File "/home/alecxe/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module> from tensorflow.python. ... soon as I open the terminal windows, and type nvcc -V in the new terminal window it again shows that not installed
asked Dec 7, 2019 alecxe 7.5k points
0 votes
1 answer 80 views
Problem: I am getting this error everytime I open my server. I need someone to help me how to remove this error?
asked Nov 14, 2020 prog_learner 2.5k points