• Register
0 votes
392 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

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 35 views
35 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.1K views
1.1K 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 mphil 2.3k points
0 votes
1 answer 72 views
72 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 mphil 2.3k points
0 votes
1 answer 687 views
687 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 40 views
40 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 jwilliam 3.9k points