From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mike Reilly" To: help-gcc@gnu.org Subject: Re: How to set CC enviroment? Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: <84u6gd$shk$1@news4.jaring.my> X-SW-Source: 2000-q1/msg00064.html Message-ID: <20000401000000.5wO8zI-P3PvouLlXxkA8EouFjdX1J_TUxIkbfZjAQAs@z> You can check if your CC environment variable is set by typing 'set' at the command prompt. To create a CC variable if one doesn't exist, type 'CC="/usr/sbin/gcc" or whatever the path is to gcc (sorry I'm on an NT box right now, don't have a decent news reader for Linux yet - anyone have any suggestions for a powerful yet easy to use one?). You can then check if your CC variable is set by typing 'set' once again. If typing 'set' returns too many for one screen, redirect output to a file. set >> vars.txt for example. However, it may be that you don't currently have things set up correctly on your machine. On mine (mandrake 6.0), I didn't have any development libraries installed, and couldn't get anything going correctly until I did (doh! there goes a couple of days figuring that out). If you have a lot of problems, deja news will be your best resource, as well as the gcc docs. Good luck. Mike Danny Goh wrote in message < 84u6gd$shk$1@news4.jaring.my >... >As I run the ./configure, the machine show this problem.. > >Configuring for a sparc-sun-solaris2.7 host. >Created "Makefile" in /opt/srcdir using "mh-frag" >./configure: cc: not found >*** The command 'ccc -o conftest -g conftest.c' failed. >*** You must set the environment variable CC to a working compiler. > >Thanks in advance > >