近期安装的nginx的geo的模块在编译nginx的时候遇到报错,报错信息如下:
1 2 3 4 5 6 7 8 | checking for OpenSSL library ... found checking for zlib library ... found checking for GeoIP library ... not found checking for GeoIP library in /usr/local/ ... not found checking for GeoIP library in /usr/pkg/ ... not found checking for GeoIP library in /opt/local/ ... not found . /configure : error: the GeoIP module requires the GeoIP library. You can either do not enable the module or install the library. |
解决办法:
1 | apt-get install libgeoip-dev
|
本文转自 xinsir999 51CTO博客,原文链接:http://blog.51cto.com/xinsir/1745008,如需转载请自行联系原作者