arm-linux-gnueabihf-g++: error trying to exec ‘cc1plus’: execvp: No such file or directory

 

 

Problem: Ubuntu: version 18.04, cross compilation code error   arm-linux-gnueabihf-g++: error trying to exec ‘cc1plus’: execvp: No such file or directory

 

Solution: you can see that here is the cross compilation tool. In this case, you can look at the cross compilation tool folder and export the environment variable “path”,

 

Like mine

export PATH=$PATH:/opt/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin

  

In order to make it permanent, you can modify the/etc/profile or ~ /. Brashrc file. The article on the difference between them and searching for the permanent effect of Linux environment variables should be introduced

[key] the cross compilation tool chain must be decompressed and copied to the specified path (or directly decompressed to the specified path). Do not only copy some tools to their own tool chain path after decompressing, which is easy to make strange and impossible errors!!!

 

If it is not cross compiling, the solution is simple. Install G + + tools!

 

Similar Posts: