installation problem, cannot exec `cc1': No such file or directory
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
installation problem, cannot exec `cc1': No such file or directory
Hello everyone,I am new here.and I got some trouble with gcc of my linux system.I have learnt linux for about one week,so I can hardly understand the answers which I got from google.yesterday,I just installed my gcc to my redhat linux,however,when I run my first simple c program,I encounter a error
"installation problem, cannot exec `cc1': No such file or directory".I don't know how to solve it,so i come here for help.
I installed my gcc with 13 rpm files:
----------------------------------------
compat-gcc-32-3.2.3-47.3.i386.rpm
compat-gcc-32-c++-3.2.3-47.3.i386.rpm
cpp-3.4.6-3.i386.rpm
gcc-3.4.6-3.i386.rpm
gcc-c++-3.4.6-3.i386.rpm
gcc-g77-3.4.6-3.i386.rpm
gcc-gnat-3.4.6-3.i386.rpm
gcc-java-3.4.6-3.i386.rpm
gcc-objc-3.4.6-3.i386.rpm
glibc-devel-2.3.4-2.25.i386.rpm
glibc-headers-2.3.4-2.25.i386.rpm
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
libgcc-3.4.6-3.i386.rpm
-------------------------------------------
Duaring the process of installing I haven't seen any error.
by the way,i am not from a English-speaking country,so there may exists some mistakes in spelling and using phrase even grammar.I would like to apologize for that,sorry.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Welcome to LQ.
'cc1' should be in place with 'gcc-c++-3.4.6-3' installed.
( Like /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1 ).
Some rare programs could tease gcc not to find its own cc1.
( cc1plus has the same location, and may also not be found.)
I have seen that once or twice. Long time ago.
A link can do the trick :
# ln -s /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1 /usr/local/bin/
If you are not using gcc-3.2.3, you can leave the link. Else : delete it,
when you have finished with the program.
P.S. : Your old EL 4.2 has not been updated since 2005.
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm is from that time.
Thank you,I have solved this problem.I reinstalled my linux system,and I choose to install these program-developing tools which were prompted.Thanks for your answers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.