Welcome! Log In Create A New Profile

Advanced

Re: Problem installing in custom folder when Perl is enabled

Martin Grigorov
March 15, 2020 06:04PM
Thank you for the answer, Maxim!

Regards,
Martin

On Fri, Mar 13, 2020 at 4:22 PM Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Mar 13, 2020 at 03:12:35PM +0200, Martin Grigorov wrote:
>
> > I'm facing the following problem when I try to install Nginx in a custom
> > folder:
>
> [...]
>
> > 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
>
> [...]
>
> > 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 ?
>
> By default the nginx perl module is installed by into system's
> default path for perl modules. That is, the path is not set by
> the "--prefix" parameter, but rather comes from the Perl itself.
> You can specify a different path using the
> "--with-perl_modules_path" configure parameter.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem installing in custom folder when Perl is enabled

Martin Grigorov March 13, 2020 09:14AM

Re: Problem installing in custom folder when Perl is enabled

Maxim Dounin March 13, 2020 10:24AM

Re: Problem installing in custom folder when Perl is enabled

Martin Grigorov March 15, 2020 06:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready