> i was running a make file in one window then i ran
> gcc in another and got the following message.
>> gcc: installation problem, cannot exec 'cc1plus': no such file or directory
>> i reinstalled gcc but gout the same message any solutions
Do you have GCC_EXEC_PREFIX set in your environment? That can be used to
change where the compiler looks for its various pieces, including the main
compiler programs like cc1 (the C compiler) or cc1plus (the one for C++),
include files, the libgcc support library, et al.
The gcc distribution you have may in fact only have had the C front-end built;
when it's created, it needs to either be built with a plain `make', or with
one specifying LANGUAGES='c c++'.
Are you able to compile a C file with that same gcc, or does it give a similar
error for cc1?
Is the compilation using any `-B/some/dir/' flags? That can sometimes be used
to direct the compiler to look in the right location (much as it will with
GCC_EXEC_PREFIX) for the same various pieces.
Hope this helps,
Web page: http://www.zen.org/~brendan/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!