Ubuntu
Tagged:  •  
Ubuntu girl
Tagged:  •    •  

This is the second time I've run into this error and I'm sick of Googling around for the answer. So I'm documenting it here. When preparing to compile code on Linux, one runs the configure command. If you don't have your compilers in order, you'll be faced with a message like this:


root@robert-desktop:/usr/src/memcache-2.1.0# ./configure --enable-memcache
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... /usr/bin/cpp-4.0
checking for C compiler default output file name... conftest.in
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

The problem can be figured out by looking at the environment variables for your C compiler:


env | grep CC
CC=/usr/bin/cpp-4.0

Syndicate content