LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How 2 program? (https://www.linuxquestions.org/questions/linux-newbie-8/how-2-program-660115/)

john test 09-01-2008 07:54 AM

Quote:

Originally Posted by zainab (Post 3265400)
Thanks for ur previous reply
I have the library called libgcc installed in my list of software programs but when i try to compile c or c++ programs using gcc it gives me an error saying command gcc not found and what is the path to actually do and save i generally do it on home@localhost is my path right?please help.Thanks in advance.

Use a text editor to create the Sourcefile as "nano sourcefile"

Then use "locate gcc" to find the path for gcc. As /X/Y/gcc

Use the complete path to excute gcc as /X/Y/gcc sourcefile

Good Luck

chrism01 09-01-2008 07:37 PM

Can you run these cmds and post the results:

rpm -qa |grep -i gcc

uname -a

cat /etc/issue


All times are GMT -5. The time now is 06:55 AM.