G++ on server error error trying exec cc1plus

Started by
0 comments, last by user0 12 years, 5 months ago
I am trying to run a build on my server but I am getting the error:
g++: error trying to exec 'cc1plus': execvp: No such file or directory

I have tried uninstalling and reinstalling everything that has anything todo with gcc/g++
build-essentials is installed

I think this is the problem but dont know how to fix it
locate cc1plus gives nothing
Any Ideas?


gcc --version
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

g++ -- version
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

lsb_release -a
No LSB modules are available
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty


UPDATE: Seems to work just fine as root but other users get this error. Why is that? I need regular users to compile.
Advertisement
Solved!!!

For the next person to have a problem similar to this make sure to check the enviroment variables

I was running php through fastcgi and the path variable wasnt set I simply set it and now everything works like it should!!!

This topic is closed to new replies.

Advertisement