leder_gao 发表于 2013-6-18 16:36:44

lnmp安装http_geoip_module模块

我用lnmp安装http_geoip_module模块,到最后出现
./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.
出现这样的错误了!!
我是按照这个http://www.vpsee.com/2011/03/install-nginx-with-geoip-module-for-country-targeting/操作的。。
麻烦军哥帮忙看下哦。。谢谢了。。

licess 发表于 2013-6-18 20:24:07

geoip库没装上吧

debian的话直接apt-get install geoip-database libgeoip-dev
centos的话可以安装epel https://www.vpser.net/manage/centos-rhel-linux-third-party-source-epel.html 第三方源再装
不想用钱买的方法就按教程编译安装

leder_gao 发表于 2013-6-18 21:25:18

回复 2# 的帖子

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm 我复制这个,结果显示:
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
curl: (22) The requested URL returned error: 404 Not Found
error: skipping http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm - transfer failed
地址出错了?

licess 发表于 2013-6-18 22:11:30

把6-7换成6-8,版本升级了
页: [1]
查看完整版本: lnmp安装http_geoip_module模块