# Cross Compiling nginx-1.0.11

**URL:** <https://www.ruby-forum.com/t/cross-compiling-nginx-1-0-11/215907>\
**Category:** NGINX\
**Created:** [January 19, 2012, 8:06am UTC](https://www.ruby-forum.com/t/cross-compiling-nginx-1-0-11/215907 "2012-01-19T08:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 19, 2012, 8:06am UTC](https://www.ruby-forum.com/t/cross-compiling-nginx-1-0-11/215907/1 "2012-01-19T08:06:47Z")

</div>

Hi ,  
I want to know how to cross compile nginx-1.0.11.

I have already tried : --with-cc option  
but it is giving me an error : checking for C compiler … found but is  
not working

```
                                    ./configure: error: C compiler

```

arm-linux-gcc is not found

```
                             --with-cc-opt is also not working.

```

I tried to change compiler manually too(by changing a Makefile).

I have already install arm-linux-gcc and its working fine with  
openssl(It successfully cross compiled openssl. so problem is not with  
arm-linux compiler).

Any help will be highly appreciated …  
Thanks in advance. 🙂

Posted at Nginx Forum:

> **[Cross Compiling nginx-1.0.11](https://forum.nginx.org/read.php?2,221430,221430#msg-221430)**
>
> Hi , I want to know how to cross compile nginx-1.0.11. I have already tried : --with-cc option but it is giving me an error : checking for C compiler ... found but is not working ./configure: error: C compiler arm-l

---

<div class="post-metadata">

**Author:** ![sandeeppatel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@sandeeppatel](https://www.ruby-forum.com/u/sandeeppatel)\
**Post date:** [January 19, 2012, 11:59am UTC](https://www.ruby-forum.com/t/cross-compiling-nginx-1-0-11/215907/2 "2012-01-19T11:59:25Z")

</div>

Hello!

On Thu, Jan 19, 2012 at 02:06:32AM -0500, sandeeppatel wrote:

> ```
> --with-cc-opt is also not working.
> 
> ```
> 
> I tried to change compiler manually too(by changing a Makefile).
> 
> I have already install arm-linux-gcc and its working fine with  
> openssl(It successfully cross compiled openssl. so problem is not with  
> arm-linux compiler).
> 
> Any help will be highly appreciated …  
> Thanks in advance. 🙂

Cross-compilation isn’t currently supported by nginx.

Maxim D.

---

<div class="post-metadata">

**Author:** ![sandeeppatel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@sandeeppatel](https://www.ruby-forum.com/u/sandeeppatel)\
**Post date:** [December 7, 2013, 10:00am UTC](https://www.ruby-forum.com/t/cross-compiling-nginx-1-0-11/215907/3 "2013-12-07T10:00:14Z")

</div>

Hello!

On Fri, Dec 06, 2013 at 06:27:52AM -0800, Shenchen foundshany wrote:

> hi,  
> do you have a plan to supported cross-compilation nginx. how to do it,  
> thanks

There are no plans to support cross-compilation.

–  
Maxim D.  
[http://nginx.org/en/donation.html](http://nginx.org/en/donation.html)
