This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cannot exec 'cc1plus'
I'm using a very old Conectiva 5 box :(
I solved the problem doing this:
1. I verified the file /usr/lib/gcc-lib/i386-pc-linux/2.95.3/cc1plus
is present, then I copied it to /usr/lib/gcc-lib/i386-conectiva-linux;
2. After, I moved the i386-pc-linux dir to i386-pc-linux-antigo and
linked the i386-conectiva-linux to i386-pc-linux, like this:
# ls -lh /usr/lib/gcc-lib/
i386-conectiva-linux
i386-pc-linux -> i386-conectiva-linux
i386-pc-linux-antigo
Note: In accordance to
# g++ -print-search-dirs
install: /usr/lib/gcc-lib/i386-pc-linux/2.95.3/
and
# gcc -print-search-dirs
install: /usr/lib/gcc-lib/i386-conectiva-linux/2.95.3/
Are different dirs. What I have to do to solve that? Is correctable on
build time? Is needed to rebuild the gcc suite?
Regards.
[]s
On 9/26/06, Amit Choudhary <amit2030@yahoo.com> wrote:
Hi Murilo,
From the error, it looks like you have to re-install g++. I
tried searching for cc1plus and I found it in these locations:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus
/usr/lib/gcc-lib/i386-redhat-linux/3.0.2/cc1plus
/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/cc1plus
/usr/i386-glibc21-linux/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus
Can you check if you also have cc1plus. I was able to execute:
$/usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus
Regards,
Amit
--- Murilo Opsfelder Araújo <mopsfelder@gmail.com> wrote:
> Hi,
>
> I have a little C++ app, see that:
>
> $ cat teste.cpp
> #include <iotream>
>
> using namespacing std;
>
>
> int main() {
> cout << "testing the g++ compiler" << endl;
>
> return(0);
> }
>
> When I try the following command I get an error:
>
> $ g++ -o teste teste.cpp
> g++: installation problem, cannot exec `cc1plus': No such file
> or directory
>
> Does anyone know what's happening?
>
> Regards.
>
>
> --
> Murilo Opsfelder Araújo
> Linux User #391561
> ./murilo --opsfelder='araujo'
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Murilo Opsfelder Araújo
Linux User #391561
./murilo --opsfelder='araujo'