Dan*_*ani 6 php cross-compiling
我正试图交叉编译php for arm并取得了很好的进展,但我完全陷入了想要运行php本身的地方(不知道为什么).因为它是一个arm二进制而不是intel(我的构建平台)它不会运行:
/bin/sh: /path-to-build/sapi/cli/php: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?配置脚本理解我是交叉编译但没有做任何事情(来自配置日志):
checking whether the C compiler (/path-to-compiler/arm-none-linux-gnueabi-gcc) is a cross-compiler... yes
Run Code Online (Sandbox Code Playgroud)
我正在php-5.3.6使用configure命令行进行编译:
export CC=/path-to-cc/arm-none-linux-gnueabi-gcc
../configure --prefix=/prefix-path/ --host=arm-none-linux-gnueabi
--disable-libxml --disable-dom --disable-openssl
--without-iconv --without-openssl --disable-simplexml
--disable-xml --disable-xmlreader --disable-xmlwriter
--without-pear --without-sqlite --without-sqlite3
--disable-pdo --without-pdo-sqlite
Run Code Online (Sandbox Code Playgroud)
我通过禁用来解决这个问题phar.我希望禁用这么多模块不会破坏内部的东西.