# Error Installing Passenger with nginx

**URL:** <https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825>\
**Category:** NGINX\
**Created:** [August 18, 2011, 9:50am UTC](https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825 "2011-08-18T09:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 18, 2011, 9:50am UTC](https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825/1 "2011-08-18T09:50:07Z")

</div>

I’ve been trying to set up my ROR app on AIX 5.3 with Passenger. Tried  
all the different options. Till last night, I was getting below:

Commands:  
cd /path to my app  
passenger start

src/os/unix/ngx\_errno.c: In function ‘ngx\_strerror’:  
src/os/unix/ngx\_errno.c:36:43: error: expected expression before ‘)’  
token  
src/os/unix/ngx\_errno.c: In function ‘ngx\_strerror\_init’:  
src/os/unix/ngx\_errno.c:57:24: error: invalid type argument of unary  
‘\*’ (have  
long unsigned int’)  
src/os/unix/ngx\_errno.c:64:37: error: expected expression before ‘;’  
token  
gmake[1]: \*\*\* [objs/src/os/unix/ngx\_errno.o] Error 1  
gmake[1]: Leaving directory `/tmp/abaziz-passenger-standalone-860288/  
nginx-1.0.

I went in and manually changed file called ngx\_auto\_config.h, line 107  
to:

#ifndef NGX\_SYS\_NERR  
#define NGX\_SYS\_NERR  
to  
#ifndef NGX\_SYS\_NERR  
#define NGX\_SYS\_NERR 1

This seem to have fixed the error. I want to confirm if this is a known  
an issue with nginx code?

Moving on - I’m now hitting different problems when I do the command:  
passenger-install-nginx-module.

…  
config.status: executing depfiles commands  
rm -f ext/libev//libev.la  
cd ext/libev/ && make libev.la  
/bin/sh ./libtool --tag=CC --mode=compile gcc -  
DHAVE\_CONFIG\_H -I.  
-g -O2 -O3 -c -o ev.lo ev.c  
gcc -DHAVE\_CONFIG\_H -I. -g -O2 -O3 -c ev.c -o ev.o  
ev.c: In function ‘ev\_invoke\_pending’:  
ev.c:1997:9: error: ‘ANPENDING’ has no member named ‘reqevents’  
ev.c: In function ‘ev\_clear\_pending’:  
ev.c:2465:15: error: ‘ANPENDING’ has no member named ‘reqevents’  
ev.c: In function ‘ev\_io\_start’:  
ev.c:2506:3: error: ‘ev\_io’ has no member named ‘reqevents’  
ev.c:2514:25: error: ‘ev\_io’ has no member named ‘reqevents’  
ev.c:2515:4: error: ‘ev\_io’ has no member named ‘reqevents’  
ev.c: In function ‘ev\_embed\_start’:  
ev.c:3387:5: error: ‘ev\_io’ has no member named ‘reqevents’  
ev.c: In function ‘ev\_once’:  
ev.c:3567:7: error: ‘ev\_io’ has no member named ‘reqevents’  
make: 1254-004 The error code from the last command is 1.

Any help would be welcome.

Thanks,  
Aziz

---

<div class="post-metadata">

**Author:** ![abdul\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/34f0e0/32.png) [@abdul\_a](https://www.ruby-forum.com/u/abdul_a)\
**Post date:** [August 18, 2011, 12:18pm UTC](https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825/2 "2011-08-18T12:18:00Z")

</div>

On Thu, Aug 18, 2011 at 09:50:07AM +0200, Abdul A. wrote:

> src/os/unix/ngx\_errno.c: In function ‘ngx\_strerror\_init’:  
> I went in and manually changed file called ngx\_auto\_config.h, line 107  
> an issue with nginx code?  
> -g -O2 -O3 -c -o ev.lo ev.c  
> ev.c:3387:5: error: ‘ev\_io’ has no member named ‘reqevents’  
> ev.c: In function ‘ev\_once’:  
> ev.c:3567:7: error: ‘ev\_io’ has no member named ‘reqevents’  
> make: 1254-004 The error code from the last command is 1.

You should try to build libev separately.

Download original source from  
[http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz](http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz), build  
and install libev. Then try to rebuild nginx with installed  
libev.

–  
Sergey A. Osokin  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![abdul\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/34f0e0/32.png) [@abdul\_a](https://www.ruby-forum.com/u/abdul_a)\
**Post date:** [August 18, 2011, 3:16pm UTC](https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825/3 "2011-08-18T15:16:43Z")

</div>

Sergey A. Osokin wrote in post #1017276:

> On Thu, Aug 18, 2011 at 09:50:07AM +0200, Abdul A. wrote:
> 
> > src/os/unix/ngx\_errno.c: In function ‘ngx\_strerror\_init’:  
> > I went in and manually changed file called ngx\_auto\_config.h, line 107  
> > an issue with nginx code?  
> > -g -O2 -O3 -c -o ev.lo ev.c  
> > ev.c:3387:5: error: ‘ev\_io’ has no member named ‘reqevents’  
> > ev.c: In function ‘ev\_once’:  
> > ev.c:3567:7: error: ‘ev\_io’ has no member named ‘reqevents’  
> > make: 1254-004 The error code from the last command is 1.
> 
> You should try to build libev separately.
> 
> Download original source from  
> [http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz](http://dist.schmorp.de/libev/Attic/libev-3.9.tar.gz), build  
> and install libev. Then try to rebuild nginx with installed  
> libev.
> 
> –  
> Sergey A. Osokin  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thanks for the pointer.

I’ve been successfull in building libev separately. How to configure  
nginx (its actually passenger I believe) to use the installed copy?

Many Thanks,  
Aziz

---

<div class="post-metadata">

**Author:** ![abdul\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/34f0e0/32.png) [@abdul\_a](https://www.ruby-forum.com/u/abdul_a)\
**Post date:** [August 18, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/error-installing-passenger-with-nginx/210825/4 "2011-08-18T16:10:28Z")

</div>

On Thu, Aug 18, 2011 at 03:16:43PM +0200, Abdul A. wrote:

> > 
> 
> nginx (its actually passenger I believe) to use the installed copy?  
> Patch for passenger-3.0.8 included.

Also, I changed default prefix to libev library from “/usr” to  
“/usr/local”.  
You should change these prefixes to right path.
