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

Igor Sysoev igor at
Mon Oct 11 15:43:04 MSD 2010

On Mon, Oct 11, 2010 at 06:47:22AM -0400, djeyewater wrote:

> 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: 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?


 --with-ld-opt="-R $HOME/apps/GeoIP/lib -L $HOME/apps/GeoIP/lib"[/code]

Igor Sysoev

More information about the nginx mailing list