我正试图交叉编译php for arm并取得了很好的进展,但我完全陷入了想要运行php本身的地方(不知道为什么).因为它是一个arm二进制而不是intel(我的构建平台)它不会运行:
/bin/sh: /path-to-build/sapi/cli/php: cannot execute binary file
我怎样才能解决这个问题?配置脚本理解我是交叉编译但没有做任何事情(来自配置日志):
checking whether the C compiler (/path-to-compiler/arm-none-linux-gnueabi-gcc) is a cross-compiler... yes
我正在使用configure命令行编译php-5.3.6:
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
我通过禁用phar来解决这个问题.我希望禁用这么多模块不会破坏内部的东西.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。