Problem installing in custom folder when Perl is enabled

Martin Grigorov martin.grigorov at gmail.com
Fri Mar 13 13:12:35 UTC 2020


Hello Nginx team,

I'm facing the following problem when I try to install Nginx in a custom
folder:

...
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lpthread -lz -lxml2
-lxslt -lexslt -lgd -lGeoIP \
-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 \
-Wl,-E
sed -e "s|%%PREFIX%%|/home/ubuntu/hg/nginx/nginx-build|" \
-e "s|%%PID_PATH%%|/home/ubuntu/hg/nginx/nginx-build/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/home/ubuntu/hg/nginx/nginx-build/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/home/ubuntu/hg/nginx/nginx-build/logs/error.log|"
\
< docs/man/nginx.8 > objs/nginx.8
make[1]: Leaving directory '/home/ubuntu/hg/nginx/nginx'
make -f objs/Makefile install
make[1]: Entering directory '/home/ubuntu/hg/nginx/nginx'
cd objs/src/http/modules/perl && make install
make[2]: Entering directory
'/home/ubuntu/hg/nginx/nginx/objs/src/http/modules/perl'
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- nginx.bs
blib/arch/auto/nginx/nginx.bs 644
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/lib/aarch64-linux-gnu/perl/5.26.1'
Do not have write permissions on
'/usr/local/lib/aarch64-linux-gnu/perl/5.26.1'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1.
Makefile:802: recipe for target 'pure_site_install' failed
make[2]: *** [pure_site_install] Error 13
make[2]: Leaving directory
'/home/ubuntu/hg/nginx/nginx/objs/src/http/modules/perl'
objs/Makefile:1795: recipe for target 'install_perl_modules' failed
make[1]: *** [install_perl_modules] Error 2
make[1]: Leaving directory '/home/ubuntu/hg/nginx/nginx'
Makefile:11: recipe for target 'install' failed
make: *** [install] Error 2
chown: cannot access '/home/ubuntu/hg/nginx/nginx-build': No such file or
directory


I do the following:

$ cd /home/ubuntu/hg/nginx
$ hg clone https://hg.nginx.org/nginx
$ cd nginx
$
./auto/configure --prefix=/home/ubuntu/hg/nginx/nginx-build
--with-http_perl_module
$ make
$ make install


If I remove "  --with-http_perl_module" then the installation is
successful.
But with Perl it still tries to install at /usr/local/lib and fails with
permissions denied.
Is this a problem in Nginx or in Perl itself ?

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.

Regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200313/df4d64f2/attachment.htm>


More information about the nginx mailing list