05
Mar

bind checking whether the C compiler works... configure: error: cannot run C compiled programs.

I kept coming across this error when trying to follow a guide for configuring bind with geodns.
The following from pingbin.com/2011/01/bind-with-geoip-error solved the issue with cc!

The fix for my system was open the following file:

nano /etc/ld.so.conf

Add the following line, which defines where to find "libGeoIP.so*"

/usr/local/geoip/lib/

Finally run this command to refresh:

ldconfig

Then you should be all set to go, using something like the following:

CFLAGS="-I/usr/local/geoip/include" LDFLAGS="-L/usr/local/geoip/lib -lGeoIP" ./configure --prefix=/usr/local/bind


Hopefully this helps some people. Please view the full content on

http://pingbin.com/2011/01/bind-with-geoip-error