Quote:
Originally posted by Damitha
[dam@localhost dam]$ gcc-$(gcc3.4-version) hello.cpp -oh
gcc-3.4.1: installation problem, cannot exec `cc1plus': No such file or directory
[dam@localhost dam]$ g++ hello.cpp -ohello
bash: g++: command not found
And when I installed the 3.4.1 version I got this error
Some package requested cannot be installed:gcc-c++-3.4.3-1mdk.i586 (due to unsatisfied libstdc++6[== 3.4.3]) do you agree ?
|
cc1plus and libstdc++6 is a vital part of your GCC installation, so basically you need to reinstall GCC. You will not be able to compile C++ programs without these.
I'm not sure exactly what cc1plus does; I think it's some sort of c++-capable preprocessor. But you do want to be using g++ or c++, not gcc or cc, to compile a c++ source file.
Libstdc++6 is the standard c++ libraries, without which you are unlikely to be able to get a c++ program to do very much that's useful. You need this for things like termainal, network and file I/O, as well as for basic data-types like strings, lists and tables.
The bottom line is that your g++ install is broken. You need to fix it by resolving its dependencies; i.e. installing the parts that you missed, or correcting the PATH so that you can actually find them.