<div dir="ltr">Hello Nginx team,<div><br></div><div>I'm facing the following problem when I try to install Nginx in a custom folder:</div><div><br></div><div>...</div><div>objs/ngx_modules.o \<br>-ldl -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lpthread -lz -lxml2 -lxslt -lexslt -lgd -lGeoIP \<br>-Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/aarch64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm -lpthread -lc -lcrypt \<br>-Wl,-E<br>sed -e "s|%%PREFIX%%|/home/ubuntu/hg/nginx/nginx-build|" \<br>      -e "s|%%PID_PATH%%|/home/ubuntu/hg/nginx/nginx-build/logs/nginx.pid|" \<br>     -e "s|%%CONF_PATH%%|/home/ubuntu/hg/nginx/nginx-build/conf/nginx.conf|" \<br>   -e "s|%%ERROR_LOG_PATH%%|/home/ubuntu/hg/nginx/nginx-build/logs/error.log|" \<br>       < docs/man/nginx.8 > objs/nginx.8<br>make[1]: Leaving directory '/home/ubuntu/hg/nginx/nginx'<br>make -f objs/Makefile install<br>make[1]: Entering directory '/home/ubuntu/hg/nginx/nginx'<br>cd objs/src/http/modules/perl && make install<br>make[2]: Entering directory '/home/ubuntu/hg/nginx/nginx/objs/src/http/modules/perl'<br>"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- <a href="http://nginx.bs">nginx.bs</a> blib/arch/auto/nginx/<a href="http://nginx.bs">nginx.bs</a> 644<br>Manifying 1 pod document<br>Files found in blib/arch: installing files in blib/lib into architecture dependent library tree<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>ERROR: Can't create '/usr/local/lib/aarch64-linux-gnu/perl/5.26.1'<br>Do not have write permissions on '/usr/local/lib/aarch64-linux-gnu/perl/5.26.1'<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br> at -e line 1.<br>Makefile:802: recipe for target 'pure_site_install' failed<br>make[2]: *** [pure_site_install] Error 13<br>make[2]: Leaving directory '/home/ubuntu/hg/nginx/nginx/objs/src/http/modules/perl'<br>objs/Makefile:1795: recipe for target 'install_perl_modules' failed<br>make[1]: *** [install_perl_modules] Error 2<br>make[1]: Leaving directory '/home/ubuntu/hg/nginx/nginx'<br>Makefile:11: recipe for target 'install' failed<br>make: *** [install] Error 2<br>chown: cannot access '/home/ubuntu/hg/nginx/nginx-build': No such file or directory<br></div><div><br></div><div><br></div>I do the following:<div><br></div><div>$ cd /home/ubuntu/hg/nginx</div><div>$ hg clone <a href="https://hg.nginx.org/nginx">https://hg.nginx.org/nginx</a><br>$ cd nginx<br>$ ./auto/configure --prefix=/home/ubuntu/hg/nginx/nginx-build  --with-http_perl_module<br>$ make<br>$ make install</div><div><br></div><div><br></div><div>If I remove "  --with-http_perl_module" then the installation is successful. </div><div>But with Perl it still tries to install at /usr/local/lib and fails with permissions denied.</div><div>Is this a problem in Nginx or in Perl itself ?</div><div><br></div><div>P.S. I have some more --with-xyz modules in the configure parameters but there are no problems with them and I didn't list them above. </div><div><br></div><div>Regards,</div><div>Martin</div></div>