Welcome! Log In Create A New Profile

Advanced

Re: Can't locate nginx.pm in @INC

Maxim Dounin
October 27, 2014 11:48AM
Hello!

On Fri, Oct 24, 2014 at 04:06:55PM -0400, djeyewater wrote:

> When I try to start nginx with embedded perl I get the error "Can't locate
> nginx.pm in @INC"
>
> @INC includes the folder I specified using --with-perl_modules_path, but
> doesn't include the arch-name subfolder (i386-linux-thread-multi), which is
> where the nginx.pm module was installed to.
>
> This is my configure:
> ./configure --prefix=$HOME/apps/$NGINX \
> --with-pcre=$HOME/tarballs/$PCRE \
> --without-http_autoindex_module \
> --without-http_charset_module \
> --without-http_empty_gif_module \
> --without-http_ssi_module \
> --with-http_gzip_static_module \
> --with-http_realip_module \
> --with-http_geoip_module \
> --with-http_ssl_module --with-openssl=../$OPENSSL \
> --with-http_perl_module --with-perl_modules_path=perl/lib \
> --with-cc-opt="-I$HOME/apps/GeoIP/include"
> --with-ld-opt="-Wl,-R,$HOME/apps/GeoIP/lib -L$HOME/apps/GeoIP/lib"
>
>
> This is Nginx 1.7.6, building on CentOS. I have 1.7.3 built on Ubuntu with
> embedded perl module and that does look in the correct location for the
> module, though I can't remember if I had to change anything to get that
> working.
>
> Can anyone tell me what I need to do to get it to look in the arch-name
> subfolder for the module?

This looks like RHEL-specific change in Perl behaviour. I doubt
RedHat will fix this, but you may try asking them nevertheless.
Alternatively, you may try using the perl_modules directive as a
workaround, see http://nginx.org/r/perl_modules.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Can't locate nginx.pm in @INC

djeyewater October 24, 2014 04:06PM

Re: Can't locate nginx.pm in @INC

Maxim Dounin October 27, 2014 11:48AM

Re: Can't locate nginx.pm in @INC

djeyewater October 27, 2014 02:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready