add perl support in nginx

Job ID: 30782169

Budget: $10 – $30 USD

I am trying to add perl support in nginx

I downloaded nginx and extract it
wget http://nginx.org/download/nginx-1.15.2.tar.gz

then install it using the following command

sudo ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_perl_module --with-perl_modules_path=/usr/lib64/perl5/vendor_perl --with-perl=/usr/bin/perl

but the installtion didn't complete and gets a lot of errors of the same message
"can not be used when making a PIE object; recompile with -fPIC"

so, I started over again by edit makefile to add "-fPIC" flag

CFLAGS = $CFLAGS -fPIC

the installation completed but nginx couldn't start with a new error in nginx log
"alert perl parse() failed 2"
Related categories: Perl Linux Shell Script Nginx CentOs