注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

涅槃

文档收藏

 
 
 

日志

 
 
 
 

BIND with GeoIP Error  

2013-09-23 15:58:07|  分类: bind&DNS |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |


Posted by Tom in Servers

I have been playing around with BIND DNS and the GeoIP/GeoDNS patch for a while now.
This error always seems to pop up on CentOS, and Google didn’t show that much.

1
2
3
4
5
6
7
checking for C compiler default output file name... a.out
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.
checking for C compiler default output file name... a.out
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.

If you check further in config.log you will see the following line:

1
./a.out: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory

The fix for my system was open the following file:

1
nano /etc/ld.so.conf

Add the following line, which defines where to find “libGeoIP.so.1

1
/usr/local/geoip/lib/

Finally run this command to refresh:

1
ldconfig

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

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








finished writing some initial code that should make the system work.

but i can’t compile the codes. stuck with the following error.

bind-9.4.2/lib/dns/acl.c:227: undefined reference to `GeoIP_country_code_by_addr' 
bind-9.4.2/lib/dns/acl.c:222: undefined reference to `GeoIP_new'

this was what i did:

./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var  --disable-openssl-version-check 
make clean 
make

everything seems correct, but make just keep producing this error. Not sure why, still trying to solve the problem.

Posted  by Jia Jun
Labels: Technical
  评论这张
 
阅读(622)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018