I have cross-compiled PHP5.2.13 for ARM processor running Linux. Following is the commands I used:-
- export PATH=/usr/local/DigiEL-5.9/x-tools/arm-cortex_a8-linux-gnueabi/bin:$PATH /usr/local/DigiEL-5.9/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sysroot/usr/
- CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr --without-iconv --disable-xml --without-pear --disable-libxml --disable-dom --disable-simplexml --disable-xmlreader --disable-xmlwriter
- make INSTALL_ROOT=$HOME/phpinstall install
On the target Machine I have executed the following command
scp test@sourceIP:/home/test/phpinstall/usr/bin/* ./
Now on the target machine executed cd /usr/bin
I could see the php, php-cgi, php-conf,phpize files.
I have the environment path as well.
But when I executed php -v. it throws the following error.
/usr/bin/php: line 1: syntax error: unexpected word (expecting ")")
Any help is much appreciated.