Building with geo-ip when GeoIP lib in non-standard location

djeyewater nginx-forum at nginx.us
Mon Oct 11 14:47:22 MSD 2010


I have the GeoIP lib installed in a non standard location. I am
configuring nginx like
[code]./configure   --prefix=$NGX_PATH   
--with-pcre=$HOME/tarballs/pcre-8.10  --without-http_autoindex_module  
--without-http_charset_module   --without-http_empty_gif_module  
--without-http_geo_module   --without-http_ssi_module   
--with-http_gzip_static_module   --with-http_realip_module
--with-http_geoip_module --with-cc-opt="-I $HOME/apps/GeoIP/include"
--with-ld-opt="-L $HOME/apps/GeoIP/lib"[/code]


Nginx will configure, make and make install okay.

But when I try to start it I get the error 
[code]error while loading shared libraries: libGeoIP.so.1: cannot open
shared object file: No such file or directory[/code]


How should I get nginx with the geo-ip module to work when the GeoIP lib
is installed in a non-standard location?

Thanks

Dave

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,139261,139261#msg-139261




More information about the nginx mailing list