码迷,mamicode.com
首页 > 其他好文 > 详细

nginx: error while loading shared libraries: libGeoIP.so.1

时间:2015-05-12 01:49:45      阅读:372      评论:0      收藏:0      [点我收藏+]

标签:geoip

wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz


# tar xzvf GeoIP.tar.gz

# cd GeoIP-1.4.8

# ./configure

# make && make install


# nginx -t
nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory


# locate libGeoIP.so.1
-bash: locate: command not found

yum -y install mlocate
-------------------------------


# locate libGeoIP.so.1
locate: can not stat () `/var/lib/mlocate/mlocate.db‘: No such file or directory

updatedb
-------------------------------


# locate libGeoIP.so.1
/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1
/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1.4.8
/usr/local/lib/libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1.4.8


# echo"/usr/local/lib" >> /etc/ld.so.conf
# ldconfig


# nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


   

本文出自 “方寸小山” 博客,请务必保留此出处http://63638790.blog.51cto.com/513514/1650407

nginx: error while loading shared libraries: libGeoIP.so.1

标签:geoip

原文地址:http://63638790.blog.51cto.com/513514/1650407

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!