近期安装的nginx的geo的模块在编译nginx的时候遇到报错,报错信息如下:
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.
解决办法:
apt-get install libgeoip-dev
时间: 2024-11-04 15:06:26