您的位置:首页 > Web前端

Fix “gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory” in Fedora

2015-09-01 15:00 519 查看
原文 http://www.unixmen.com/fix-gcc-error-trying-exec-cc1plus-execvp-file-directory-fedora/
主题
Fedora GCC

Hi Guys,

These days, I am into fixing of Errors, especially on Fedora :-), I run into them first and after fixing it, I make it available to others who might fall prey sometime.

Well, you may be reading this because you started installing or compiling a package from source on your Fedora too, and the error message below; is what you see:

gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...

ANSWER:

You need g++ in order to go through this. On Fedora the package name is gcc-c++

Open Terminal as root user and run:

# yum install gcc-c++

Re-run what you were doing and this error you pass.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: