gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
While I was installing some software on a client machine I got the following error:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
Even though this doesn’t matter so much (as it can happen in other cases also) the software that I was trying to install was the perl module Encode::Detect.
If you have a problem like this one (even if you are trying to compile a different software) you might want to doublecheck and see if you have g++ installed on the system. In my case a simple since the system was running Debian all I had to do was:
aptitude install g++
and this solved my issue and the compilation finished successfully.
Tags: perl_module, tips
Share ThisRelated Posts:
15 Responses to “gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory”
Leave a Reply
Next: MySQL Tools: MySQLTuner »








29th December 2007, 16:47
Thanks! I was going crazy tryng to compile VMWare on Debian 2.6.23 amd64.
4th January 2008, 20:45
And now i have this problem !
But for installing g++ require Kubuntu CD Rom.
4th January 2008, 21:49
Miroslav: search the ubuntu forums as you will find many references on how to install software directly from the internet from the ubuntu repositories.
- Marius -
5th January 2008, 12:36
Thank you for response !
I dont know why in Ubuntu/Kubutu not have C/C++ compiler by default
21st January 2008, 19:50
I ran into this problem on Debian with vmware-server on 2.6.23.
I already had g++ installed, however it appears that the kernel was compiled with gcc-4.1 (cat /proc/version) and module-assistant found correct version of gcc, however it failed to make sure that g++-4.1 is also installed.
Your hint helped to solve it.
Thanks!
24th February 2008, 16:37
[...] g++ Compiler auf dem System nicht installiert [...]
22nd March 2008, 15:43
mine is fedoracore 8 i get the same eror “cc1pls file not found” what shd i do???
23rd March 2008, 21:12
sathish: something like this might help you:
yum install gcc-c++1st April 2008, 18:03
its not working in the sense it is downloading for sometime aftr sometime it is saying couldnot open trying another mirror…..its goin on like that….my int speed is low.
i have tried approximately 15 times….
1st April 2008, 20:54
sathish: try to use a mirror that is closer to your location as that might help you.
2nd April 2008, 12:38
how can i select a mirror when i am tying yum in terminal
2nd April 2008, 13:58
hi,
i have the same problem.
i want to install the network simulator ns-2 using cygwin. the problem hapen when it want to excute the makefile of the TCLCL.
i dont know what to do.
please hepl me. it’s urgent
thanks
2nd April 2008, 16:42
Your repo’s are defined under: /etc/yum.repos.d/*
The format of the repo file is self explanatory; Btw. your problem is not related to this post and you should be much better addressing these kind of questions on the fedora forums where you should get a response much faster then I can respond myself.
Cheers,
- Marius -
7th July 2008, 17:02
Thank you!!!!
17th September 2008, 08:31
You, sir, are a hero. Thank-you.