交叉编译php
发布时间:2020-05-25 09:27:23 所属栏目:PHP 来源:互联网
导读:我正试图交叉编译php for arm并取得了很好的进展,但我完全陷入了想要运行php本身的地方(不知道为什么).因为它是一个arm二进制而不是intel(我的构建平台)它不会运行: /bin/sh: /path-to-build/sapi/cli/php: cannot execute binary file 我怎样才能解决这个问
|
我正试图交叉编译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来解决这个问题.我希望禁用这么多模块不会破坏内部的东西. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
