configure: error: no acceptable cc found in $PATH

Morrison, Bradley A. bradm at
Tue Jan 23 16:53:44 GMT 2001

I get the "language optional software package not installed" bit, that just
means you didn't buy Sun's C compiler.

I'm not sure why configure would complain about not being able to find gcc
in your $PATH, since at what appears to be the next prompt, you "found" gcc.
I did find an override provision in the configure that came with Samba
2.0.6--you can set an environment variable CC to define your compiler:

Bourne/Korn/bash/most every other shell besides cShell:
	$ CC=gcc
	$ export CC
	% setenv CC gcc

I think this will get you what you want.  This is a useful setting in lots
of other contexts, since make honors this environment variable, too:

$ cat > foo.c
main () {printf("hello, world!\n");}
$ make foo
cc    -o foo foo.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `foo'
$ CC=gcc; export CC
$ make foo
gcc    -o foo foo.c
$ ./foo
hello, world!

BTW, a quick way to determine whether any executable script or binary is in
your $PATH is the 'which' command--it returns the first instance of the
command in your $PATH variable:

$ which gcc

Finally, don't beat yourself up for not knowing as much as you'd like to
about UNIX.  Bill Joy, the co-founder of Sun Microsystems, the guy who
*wrote* most of what we know as Berkeley UNIX (he wrote 'vi', for goodness'
sake :-), said recently that he is still discovering how to use UNIX.

"The fool thinks he is wise; the wise man knows himself to be a fool."

I think it was very wise of you to post your question to the list, you know,
lighting a candle vs. cursing the darkness.

> -----Original Message-----
> From:	Super-User [SMTP:masweeney at]
> Sent:	Tuesday, January 23, 2001 6:35 PM
> To:	samba at; masweeney at; cflood at
> Subject:	configure: error: no acceptable cc found in $PATH 
> Hi,
> First I would like to mention that my UNIX skills suck, but I have been
> tasked with getting Samba installed on my Solaris 8.0 Intel platform.
> I have installed all the latest patches and the gcc complier from
> and setup my $PATH env. I have been successful
> compling other apps such as Tomcat and Apache, but for what ever resaon
> I can get the ./configure to run in order to get my make file.
> below is the error I get
> # ./configure
> loading cache ./config.cache
> checking for gcc... no
> checking for cc... no
> configure: error: no acceptable cc found in $PATH
> So it appears that it cannot find gcc or cc in the $PATH but, below is
> the output from running gcc from the same location
> # gcc
> gcc: No input files ( So this is working fine)
> Now if I run cc from the same location I  get this
> # cc
> /usr/ucb/cc:  language optional software package not installed
> Any Ideas?
> Thanks a bunch

More information about the samba mailing list