I am trying to cross-compile Nginx for Armv7l. See the followings steps already done (following this tutorial mainly Nginx for arm)
./configure --without-pcre --without-http_rewrite_module --without-http_gzip_module
CC = ccto
CC = arm-linux-gcc
find . -name "*.o" | xargs rm -f
My binary file "nginx" is available in objs/nginx.
file gives the following result
objs/nginx: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.28, not stripped
Copy this binary nginx inside
/sbinon my arm machine and use the command
nginx: line 1: syntax error: word unexpected (expecting ")")
I cannot find any help on internet. What does that error mean ? Is my file corrupted ? Should I copy the whole
objs folder or only the binary as I did ?
Is there an already compiled version of nginx for armv7l (I did not find one) ?