![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling and Running C Program on Solaris | selva_ss | SUN Solaris | 2 | 02-23-2008 09:02 AM |
| help on compiling a C program on Tiger | cleansing_flame | High Level Programming | 4 | 01-29-2008 12:59 PM |
| Compiling a C program | ooploo | High Level Programming | 3 | 10-06-2006 03:35 AM |
| Compiling a program | Minnesota Red | High Level Programming | 7 | 06-16-2003 01:35 PM |
| Error Compiling C program | Vivek | High Level Programming | 3 | 10-25-2001 08:13 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Problem compiling program
hi
i am having a problem that when ever i use cc program_name.c to compile a program. an error occurs, showing cc not found. please help. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
type this command:
Code:
which cc Code:
which gcc |
|
#3
|
|||
|
|||
|
the output of commands was:
# which cc no cc in /usr/sbin /usr/bin # which gcc no gcc in /usr/sbin /usr/bin # |
|
#4
|
|||
|
|||
|
search
Check if you have the cc/gcc installed. If it is so, the PATH variable is not poiniting to the directory where the compiler is located. You have to give the full path of the cc/gcc and try compiling or set the PATH variable to the location where it is and it should work.
|
|
#5
|
|||
|
|||
|
cc was installed but now i don't have any idea of its location. could u help me locating and adding that location into path. Or can you tell me any address from where i can get this package
|
|
#6
|
|||
|
|||
|
may not be installed
cc/gcc is typically installed in /usr/bin. I am not sure about your system. If you want to find where the compiler could be located, run a find command.
find / -name "cc" -print Replace 'cc' with 'gcc' if that is the compiler in your system. |
|
#7
|
|||
|
|||
|
i used the find command and found
/usr/ucb/cc /cc /cc/SUNWspro/bin/cc /cc/SUNWspro/SC4.2/bin/cc /cc/SUNWspro/SC4.2/include/cc please help |
|||
| Google The UNIX and Linux Forums |