# Nginx make error, when --with-http\_perl\_module

**URL:** <https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833>\
**Category:** NGINX\
**Created:** [June 23, 2009, 9:31am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833 "2009-06-23T09:31:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 23, 2009, 9:31am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/1 "2009-06-23T09:31:45Z")

</div>

#./configure --user=elove --group=elove --prefix=/home/elove/app/nginx  
–with-http\_stub\_status\_module --with-http\_ssl\_module  
–with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module  
–with-perl=/usr/bin/perl  
–with-perl\_modules\_path=/home/elove/app/nginx/modules/perl/

checking for OS

- Linux 2.6.18-8.el5xen i686  
checking for C compiler … found
- using GNU C compiler
- gcc version: 4.1.1 20070105 (Red Hat 4.1.1-52)  
checking for gcc -pipe switch … found  
checking for gcc variadic macros … found  
checking for C99 variadic macros … found  
checking for unistd.h … found  
checking for inttypes.h … found  
checking for limits.h … found  
checking for sys/filio.h … not found  
checking for sys/param.h … found  
checking for sys/mount.h … found  
checking for sys/statvfs.h … found  
checking for crypt.h … found  
checking for Linux specific features  
checking for epoll … found  
checking for sendfile() … found  
checking for sendfile64() … found  
checking for sys/prctl.h … found  
checking for prctl(PR\_SET\_DUMPABLE) … found  
checking for sched\_setaffinity() … found  
checking for crypt\_r() … found  
checking for sys/vfs.h … found  
checking for poll() … found  
checking for /dev/poll … not found  
checking for kqueue … not found  
checking for crypt() … not found  
checking for crypt() in libcrypt … found  
checking for O\_DIRECT … found  
checking for F\_NOCACHE … not found  
checking for directio() … not found  
checking for statfs() … found  
checking for statvfs() … found  
checking for dlopen() … not found  
checking for dlopen() in libdl … found  
checking for sched\_yield() … found  
checking for PCRE library … found  
checking for zlib library … found  
checking for perl
- perl version: v5.8.8 built for i386-linux-thread-multi
- perl interpreter multiplicity found  
creating objs/Makefile  
checking for int size … 4 bytes  
checking for long size … 4 bytes  
checking for long long size … 8 bytes  
checking for void \* size … 4 bytes  
checking for uint64\_t … found  
checking for sig\_atomic\_t … found  
checking for sig\_atomic\_t size … 4 bytes  
checking for socklen\_t … found  
checking for in\_addr\_t … found  
checking for in\_port\_t … found  
checking for rlim\_t … found  
checking for uintptr\_t … uintptr\_t found  
checking for system endianess … little endianess  
checking for size\_t size … 4 bytes  
checking for off\_t size … 8 bytes  
checking for time\_t size … 4 bytes  
checking for setproctitle() … not found  
checking for pread() … found  
checking for pwrite() … found  
checking for strerror\_r() … found but is not working  
checking for gnu style strerror\_r() … found  
checking for localtime\_r() … found  
checking for posix\_memalign() … found  
checking for memalign() … found  
checking for mmap(MAP\_ANON|MAP\_SHARED) … found  
checking for mmap(“/dev/zero”, MAP\_SHARED) … found  
checking for System V shared memory … found  
checking for struct msghdr.msg\_control … found  
checking for ioctl(FIONBIO) … found  
checking for struct tm.tm\_gmtoff … found  
checking for struct dirent.d\_namlen … not found  
checking for struct dirent.d\_type … found

Configuration summary

- using system PCRE library
- using OpenSSL library: /home/elove/openssl-0.9.8c
- md5: using OpenSSL library
- sha1 library is not used
- using system zlib library

nginx path prefix: “/home/elove/app/nginx”  
nginx binary file: “/home/elove/app/nginx/sbin/nginx”  
nginx configuration prefix: “/home/elove/app/nginx/conf”  
nginx configuration file: “/home/elove/app/nginx/conf/nginx.conf”  
nginx pid file: “/home/elove/app/nginx/logs/nginx.pid”  
nginx error log file: “/home/elove/app/nginx/logs/error.log”  
nginx http access log file: “/home/elove/app/nginx/logs/access.log”  
nginx http client request body temporary files: “client\_body\_temp”  
nginx http proxy temporary files: “proxy\_temp”  
nginx http fastcgi temporary files: “fastcgi\_temp”

#make

Omitted…

cp -p src/http/modules/perl/nginx.\* objs/src/http/modules/perl/  
cp -p src/http/modules/perl/typemap objs/src/http/modules/perl/  
cp -p src/http/modules/perl/Makefile.PL objs/src/http/modules/perl/  
cd objs/src/http/modules/perl  
&& NGX\_PM\_CFLAGS="-D\_REENTRANT -D\_GNU\_SOURCE -fno-strict-aliasing -pipe  
-Wdeclaration-after-statement -I/usr/local/include -D\_LARGEFILE\_SOURCE  
-D\_FILE\_OFFSET\_BITS=64 -I/usr/include/gdbm  
-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -g "  
NGX\_PCRE=YES  
NGX\_OBJS=objs /usr/bin/perl Makefile.PL  
LIB=/home/elove/app/nginx/modules/perl/  
INSTALLSITEMAN3DIR=/home/elove/app/nginx/modules/perl//man3  
Writing Makefile for nginx  
cp -p src/http/modules/perl/nginx.\* objs/src/http/modules/perl/  
cd objs/src/http/modules/perl && make  
make[2]: Entering directory  
`/home/elove/nginx-0.7.60/objs/src/http/modules/perl' cp nginx.pm blib/lib/nginx.pm /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap nginx.xs > nginx.xsc && mv nginx.xsc nginx.c Please specify prototyping behavior for nginx.xs (see perlxs manual) gcc -c -I ../../../../../src/core -I ../../../../../src/event -I ../../../../../src/os/unix -I ../../../../../src/http -I ../../../../../src/http/modules -I ../../../../../src/http/modules/perl -I ../../../../../objs -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -g -O -DVERSION=\"0.7.60\" -DXS_VERSION=\"0.7.60\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" nginx.c In file included from ../../../../../src/core/ngx_core.h:70, from nginx.xs:10: ../../../../../src/event/ngx_event_openssl.h:14:25: error: openssl/ssl.h: No such file or directory ../../../../../src/event/ngx_event_openssl.h:15:25: error: openssl/err.h: No such file or directory In file included from ../../../../../src/core/ngx_core.h:70, from nginx.xs:10: ../../../../../src/event/ngx_event_openssl.h:31: error: expected specifier-qualifier-list before éˆ¥æ¥½SL_CTXéˆ¥? ../../../../../src/event/ngx_event_openssl.h:37: error: expected specifier-qualifier-list before éˆ¥æ¥½SLéˆ¥? ../../../../../src/event/ngx_event_openssl.h:110: error: expected éˆ¥?éˆ¥?before éˆ¥?éˆ¥?token ../../../../../src/event/ngx_event_openssl.h:111: error: expected declaration specifiers or éˆ¥?..éˆ¥?before éˆ¥æ¥½SL_SESSIONéˆ¥? In file included from ../../../../../src/http/ngx_http.h:30, from nginx.xs:11: ../../../../../src/http/ngx_http_upstream_round_robin.h:33: error: expected specifier-qualifier-list before éˆ¥æ¥½SL_SESSIONéˆ¥? make[2]: *** Error 1 make[2]: Leaving directory `/home/elove/nginx-0.7.60/objs/src/http/modules/perl’  
make[1]: \*\*\* Error 2  
make[1]: Leaving directory `/home/elove/nginx-0.7.60’  
make: \*\*\* Error 2

Posted at Nginx Forum:

> **[nginx-0.7.60 make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,3276#msg-3276)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 23, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/2 "2009-06-23T17:16:31Z")

</div>

How to solve this error?

Posted at Nginx Forum:

> **[Re: nginx-0.7.60 make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,3298#msg-3298)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 23, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/3 "2009-06-23T19:36:46Z")

</div>

On Tue, Jun 23, 2009 at 10:09 PM, lankelan[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How to solve this error?
> 
> Posted at Nginx Forum: [Re: nginx-0.7.60 make error, when --with-http\_perl\_module](http://forum.nginx.org/read.php?2,3276,3298#msg-3298)

log please?

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 24, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/4 "2009-06-24T12:38:34Z")

</div>

thans Maxim D., I resolved.

move nginx.pm into nginxpath/modules/perl/

Posted at Nginx Forum:

> **[Re: nginx-0.7.60 make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,3323#msg-3323)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 24, 2009, 2:11am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/5 "2009-06-24T02:11:54Z")

</div>

Hello!

On Tue, Jun 23, 2009 at 03:24:20AM -0400, lankelan wrote:

> #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl --with-perl\_modules\_path=/home/elove/app/nginx/modules/perl/

[…]

> …/…/…/…/…/src/event/ngx\_event\_openssl.h:111: error: expected declaration specifiers or éˆ¥?..éˆ¥?before éˆ¥æ¥½SL\_SESSIONéˆ¥?  
> In file included from …/…/…/…/…/src/http/ngx\_http.h:30,  
> from nginx.xs:11:  
> …/…/…/…/…/src/http/ngx\_http\_upstream\_round\_robin.h:33: error: expected specifier-qualifier-list before éˆ¥æ¥½SL\_SESSIONéˆ¥?  
> make[2]: \*\*\* Error 1  
> make[2]: Leaving directory `/home/elove/nginx-0.7.60/objs/src/http/modules/perl' make[1]: *** Error 2 make[1]: Leaving directory`/home/elove/nginx-0.7.60’  
> make: \*\*\* Error 2

Try the attached patch.

Maxim D.

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 24, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/6 "2009-06-24T13:12:00Z")

</div>

Hello!

On Wed, Jun 24, 2009 at 06:26:54AM -0400, lankelan wrote:

> thans Maxim D., I resolved.
> 
> move nginx.pm into nginxpath/modules/perl/

Actually, it should be in …/perl//nginx.pm. It looks  
like your perl somewhat screwed up and doesn’t catch this  
automatically as it should.

Maxim D.

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 24, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/7 "2009-06-24T22:04:28Z")

</div>

Thanks Maxim D.

I attached patch and make success.  
When start nginx print this error.

Can’t locate nginx.pm in @INC (@INC contains:  
/home/elove/app/nginx/modules/perl  
/usr/lib/perl5/site\_perl/5.8.8/i386-linux-thread-multi  
/usr/lib/perl5/site\_perl/5.8.7/i386-linux-thread-multi  
/usr/lib/perl5/site\_perl/5.8.6/i386-linux-thread-multi  
/usr/lib/perl5/site\_perl/5.8.5/i386-linux-thread-multi  
/usr/lib/perl5/site\_perl/5.8.8 /usr/lib/perl5/site\_perl/5.8.7  
/usr/lib/perl5/site\_perl/5.8.6 /usr/lib/perl5/site\_perl/5.8.5  
/usr/lib/perl5/site\_perl  
/usr/lib/perl5/vendor\_perl/5.8.8/i386-linux-thread-multi  
/usr/lib/perl5/vendor\_perl/5.8.7/i386-linux-thread-multi  
/usr/lib/perl5/vendor\_perl/5.8.6/i386-linux-thread-multi  
/usr/lib/perl5/vendor\_perl/5.8.5/i386-linux-thread-multi  
/usr/lib/perl5/vendor\_perl/5.8.8 /usr/lib/perl5/vendor\_perl/5.8.7  
/usr/lib/perl5/vendor\_perl/5.8.6 /usr/lib/perl5/vendor\_perl/5.8.5  
/usr/lib/perl5/vendor\_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi  
/usr/lib/perl5/5.8.8 .).  
BEGIN failed–compilation aborted.  
: perl\_parse() failed: 2

Posted at Nginx Forum:

> **[Re: nginx make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,3311#msg-3311)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 24, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/8 "2009-06-24T22:06:50Z")

</div>

nginx tree

|-- client\_body\_temp  
|-- conf  
| |-- fastcgi\_params  
| |-- fastcgi\_params.default  
| |-- fcgi.conf  
| |-- koi-utf  
| |-- koi-win  
| |-- mime.types  
| |-- mime.types.default  
| |-- nginx.conf  
| |-- nginx.conf.default  
| `-- win-utf |-- fastcgi_temp |-- html | |-- 50x.html | `– index.html  
|-- logs  
| |-- access.log  
| |-- error.log  
|-- modules  
| `-- perl | |-- i386-linux-thread-multi | | |-- auto | | | `– nginx  
| | | |-- nginx.bs  
| | | `-- nginx.so | | |-- nginx.pm | | `– perllocal.pod  
| `-- man3 | `– nginx.3pm  
|-- proxy\_temp  
`-- sbin `– nginx

Posted at Nginx Forum:

> **[Re: nginx make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,3313#msg-3313)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [June 25, 2009, 4:06am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/9 "2009-06-25T04:06:53Z")

</div>

Hello!

On Tue, Jun 23, 2009 at 10:53:34PM -0400, lankelan wrote:

> Thanks Maxim D.
> 
> I attached patch and make success.  
> When start nginx print this error.
> 
> Can’t locate nginx.pm in @INC (@INC contains: /home/elove/app/nginx/modules/perl /usr/lib/perl5/site\_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site\_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site\_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site\_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site\_perl/5.8.8 /usr/lib/perl5/site\_perl/5.8.7 /usr/lib/perl5/site\_perl/5.8.6 /usr/lib/perl5/site\_perl/5.8.5 /usr/lib/perl5/site\_perl /usr/lib/perl5/vendor\_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor\_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor\_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor\_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor\_perl/5.8.8 /usr/lib/perl5/vendor\_perl/5.8.7 /usr/lib/perl5/vendor\_perl/5.8.6 /usr/lib/perl5/vendor\_perl/5.8.5 /usr/lib/perl5/vendor\_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).  
> BEGIN failed–compilation aborted.  
> : perl\_parse() failed: 2

Looks like you haven’t run ‘make install’ and therefore there is  
no nginx.pm in that perl can found. After ‘make install’ it  
should appear in /home/elove/app/nginx/modules/perl.

Maxim D.

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [October 8, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/10 "2009-10-08T19:54:20Z")

</div>

Hello,

how patch file plz ?

tsukasa.

Posted at Nginx Forum:

> **[Re: nginx-0.7.60 make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,12120#msg-12120)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [October 8, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/11 "2009-10-08T21:05:11Z")

</div>

Hello!

On Thu, Oct 08, 2009 at 01:44:51PM -0400, tsukasagenesis wrote:

> Hello,
> 
> how patch file plz ?

Sorry, unable to parse your question.

If you aren’t able to find the patch in question, try looking more  
thoroughly.

If you aren’t able to apply patch, try reading some docs about  
patch(1) program. E.g. you may try wikipedia article here:

> **[patch (Unix)](https://en.wikipedia.org/wiki/Patch_(Unix))**
>
> The computer tool patch is a Unix program that updates text files according to instructions contained in a separate file, called a patch file. The patch file (also called a patch for short) is a text file that consists of a list of differences and is produced by running the related diff program with the original and updated file as arguments. Updating files with patch is often referred to as applying the patch or simply patching the files.
> The original patch program was written by Larry Wall (wh...

Maxim D.

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [September 23, 2010, 11:36am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/12 "2010-09-23T11:36:55Z")

</div>

Hello!

On Wed, Sep 22, 2010 at 10:29:57AM -0400, subeen wrote:

> I am getting the same error (in centos54 nginx-0.7.67). I also tried the  
> patch, just edited the respective files by myself, but still getting the  
> error.
> 
> This is the error message I am getting:

> -I/usr/lib64/perl5/5.8.8/x86\_64-linux-thread-multi/CORE -g -O  
> -DVERSION="0.7.67" -DXS\_VERSION="0.7.67" -fPIC  
> “-I/usr/lib64/perl5/5.8.8/x86\_64-linux-thread-multi/CORE” nginx.c

[…]

In 0.7.67 you have to use updated patch, see here:

[http://nginx.org/pipermail/nginx-devel/2010-January/000103.html](http://nginx.org/pipermail/nginx-devel/2010-January/000103.html)  
[http://nginx.org/pipermail/nginx-devel/2010-January/000104.html](http://nginx.org/pipermail/nginx-devel/2010-January/000104.html)

Maxim D.

---

<div class="post-metadata">

**Author:** ![lankelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c37758/32.png) [@lankelan](https://www.ruby-forum.com/u/lankelan)\
**Post date:** [September 23, 2010, 9:33am UTC](https://www.ruby-forum.com/t/nginx-make-error-when-with-http-perl-module/170833/13 "2010-09-23T09:33:22Z")

</div>

I am getting the same error (in centos54 nginx-0.7.67). I also tried the  
patch, just edited the respective files by myself, but still getting the  
error.

This is the error message I am getting:

```auto
make[2]: Entering directory
`/root/nginx-0.7.67/objs/src/http/modules/perl'
gcc -c -I ../../../../../src/core -I ../../../../../src/event -I
../../../../../src/os/unix -I ../../../../../src/http -I
../../../../../src/http/modules -I ../../../../../src/http/modules/perl
-I ../../../../../objs -I /root/pcre-8.10 -I
../../../../..//openssl/include -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm
-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -g -O
-DVERSION=\"0.7.67\" -DXS_VERSION=\"0.7.67\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" nginx.c
In file included from ../../../../../src/core/ngx_core.h:70,
                 from nginx.xs:10:
../../../../../src/event/ngx_event_openssl.h:14:25: error:
openssl/ssl.h: No such file or directory
../../../../../src/event/ngx_event_openssl.h:15:25: error:
openssl/err.h: No such file or directory
../../../../../src/event/ngx_event_openssl.h:16:26: error:
openssl/conf.h: No such file or directory
../../../../../src/event/ngx_event_openssl.h:17:28: error:
openssl/engine.h: No such file or directory
../../../../../src/event/ngx_event_openssl.h:18:25: error:
openssl/evp.h: No such file or directory
In file included from ../../../../../src/core/ngx_core.h:70,
                 from nginx.xs:10:
../../../../../src/event/ngx_event_openssl.h:28: error: expected
specifier-qualifier-list before â€˜SSL_CTXâ€™
../../../../../src/event/ngx_event_openssl.h:34: error: expected
specifier-qualifier-list before â€˜SSLâ€™
../../../../../src/event/ngx_event_openssl.h:109: error: expected
â€˜)â€™ before â€˜*â€™ token
../../../../../src/event/ngx_event_openssl.h:110: error: expected
declaration specifiers or â€˜...â€™ before â€˜SSL_SESSIONâ€™
In file included from ../../../../../src/http/ngx_http.h:30,
                 from nginx.xs:11:
../../../../../src/http/ngx_http_upstream_round_robin.h:33: error:
expected specifier-qualifier-list before â€˜SSL_SESSIONâ€™
make[2]: *** [nginx.o] Error 1
make[2]: Leaving directory
`/root/nginx-0.7.67/objs/src/http/modules/perl'
make[1]: *** [objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so]
Error 2
make[1]: Leaving directory `/root/nginx-0.7.67'
make: *** [build] Error 2

```

Posted at Nginx Forum:

> **[Re: nginx make error, when --with-http\_perl\_module](https://forum.nginx.org/read.php?2,3276,132852#msg-132852)**
>
> \[code\] #./configure --user=elove --group=elove --prefix=/home/elove/app/nginx --with-http\_stub\_status\_module --with-http\_ssl\_module --with-openssl=/home/elove/openssl-0.9.8c --with-http\_perl\_module --with-perl=/usr/bin/perl...
