# Nginx with --with-http\_perl\_module compilation problems

**URL:** <https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441>\
**Category:** NGINX\
**Created:** [November 30, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441 "2012-11-30T17:59:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gduarte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@gduarte](https://www.ruby-forum.com/u/gduarte)\
**Post date:** [November 30, 2012, 5:59pm UTC](https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441/1 "2012-11-30T17:59:44Z")

</div>

Hello people,  
yesterday I started trying to compile nginx with http\_perl\_module, but,  
at  
the end of the compilation, the linkeditor gets confused about the  
archtecture it’s being linked. I’m using Mac OS/X 10.6.8. Here is part  
of  
the output I get from terminal:

gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror  
-g  
-arch x86\_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL\_DARWIN  
-fno-strict-aliasing -I/usr/local/include  
-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -I  
src/core  
-I src/event -I src/event/modules -I src/os/unix -I …/pcre-8.31 -I objs  
-I  
src/http -I src/http/modules -I src/http/modules/perl   
-o objs/src/http/modules/perl/ngx\_http\_perl\_module.o   
src/http/modules/perl/ngx\_http\_perl\_module.c  
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler  
(/usr/bin/…/libexec/gcc/darwin/ppc/as or  
/usr/bin/…/local/libexec/gcc/darwin/ppc/as) for architecture ppc not  
installed  
Installed assemblers are:  
/usr/bin/…/libexec/gcc/darwin/x86\_64/as for architecture x86\_64  
/usr/bin/…/libexec/gcc/darwin/i386/as for architecture i386  
lipo: can’t open input file:  
/var/folders/QZ/QZCif6epHb85Dwl9qHtI9E+++TM/-Tmp-[//ccbScbid.out](https://ccbScbid.out) (No such  
file or directory)  
make[1]: \*\*\* [objs/src/http/modules/perl/ngx\_http\_perl\_module.o] Error 2  
make: \*\*\* [build] Error 2

Someone have seem this previously? It seems it’s a problem with the ppc  
linkedition, but I don’t know why it is trying to link against ppc  
arch…  
Any advice is welcome 🙂

PS: without the perl module, the compilation is clean…

Thanks,  
Gabriel Duarte

Posted at Nginx Forum:

> **[nginx with --with-http\_perl\_module compilation problems](https://forum.nginx.org/read.php?2,233440,233440#msg-233440)**
>
> Hello people, yesterday I started trying to compile nginx with http\_perl\_module, but, at the end of the compilation, the linkeditor gets confused about the archtecture it's being linked. I'm using Mac OS/X 10.6.8. Here is part of the output I get...

---

<div class="post-metadata">

**Author:** ![gduarte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@gduarte](https://www.ruby-forum.com/u/gduarte)\
**Post date:** [November 30, 2012, 6:13pm UTC](https://www.ruby-forum.com/t/nginx-with-with-http-perl-module-compilation-problems/226441/2 "2012-11-30T18:13:45Z")

</div>

Hi Gabriel,

it looks like the problem because of your perl.  
Could you try different perl (modern version 5.16.2), compiled without  
ppc arch.

On Fri, Nov 30, 2012 at 11:59:17AM -0500, gduarte wrote:

> -I src/event -I src/event/modules -I src/os/unix -I ../pcre-8.31 -I objs -I  
> lipo: can’t open input file:  
> /var/folders/QZ/QZCif6epHb85Dwl9qHtI9E+++TM/-Tmp-[//ccbScbid.out](https://ccbScbid.out) (No such  
> file or directory)  
> make[1]: \*\*\* [objs/src/http/modules/perl/ngx\_http\_perl\_module.o] Error 2  
> make: \*\*\* [build] Error 2
> 
> Someone have seem this previously? It seems it’s a problem with the ppc  
> linkedition, but I don’t know why it is trying to link against ppc arch…  
> Any advice is welcome 🙂
> 
> PS: without the perl module, the compilation is clean…

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