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.
When I try to compile any program in C it does well in Gnome, but the same program is not being compiled in KDE , why ? it gives an error :
cc: installation problem, cannot exec `cc1': No such file or directory
Plz help me out.
thank you
$cat>hello.c
#inchude<stdio.h>
#include<conio.h>
main()
{
printf(" Hello World");
return 0;
}
$ cc -o hello.out hello.c
>>>> Here comers the error, which is given above
>>>> A program was compiled before as first.out, the compiler is not able to compile again the first.c file but can execute the first.out file !
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
Also, conio.h is an MS-DOS/Windows header file. It won't work on Linux. The Linux equivalent is the ncurses library. Besides, in the program you give you don't need it anyway as you just call the standard library funtion.
As for your problem, cc1 should be provided by the standard gcc package. What happens if you type the command "locate cc1"?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.