Reputation: 5575
I am trying to install lesstif-0.93 onto my mac and i keep running into this error when i run configure:
bash-3.2$ ./configure
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... no
checking whether make sets ${MAKE}... yes
checking whether to build a Motif 1.2 compatible version... no
checking whether to build a Motif 2.0 compatible version... no
checking whether to build a Motif 2.1 compatible version... yes
checking whether to support EditRes... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable cc found in $PATH
bash-3.2$
I know that I have gcc because i compile lots of C sourse files everyday
also i did this:
bash-3.2$ whereis gcc
/usr/bin/gcc
Upvotes: 1
Views: 2783
Reputation: 166889
You have missing compiler C. You can install e.g. gcc via the following command:
sudo brew install gcc47
If you don't have homebrew, please install it via:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Upvotes: 0
Reputation: 22378
The fact that the build and host triples have darwin11
(Lion), yet have the cpu i386
rather than x86_64
, suggests that the configure script is very old - which lesstif most certainly is. Maybe you'd have better luck with: env CC=llvm-gcc ./configure
Better yet: grab lesstif-0.95.2, and try that.
Upvotes: 1
Reputation: 25599
Look at config.log
(there's more than one) and search for the "checking for gcc" lines, and see what the error was.
If your GCC had a nonstandard name or install location then I'd suggest this:
CC=/usr/bin/gcc configure .....
but I'd be surprised if that was the trouble. You could try it anyway.
Upvotes: 0