【问题标题】:Cross compile PHP for aarch64 - error can not run test为 aarch64 交叉编译 PHP - 错误无法运行测试
【发布时间】:2020-04-01 17:22:34
【问题描述】:

我正在尝试为 aarch64 平台编译 PHP 7.0.1(在 PHP 网站上下载)。(aarch64 GNU/Linux)

我这样配置编译:

export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
export PATH=$PATH:/home/xyz/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin

./configure  --host=aarch64-linux-gnu --prefix=/home/xyz --disable-libxml --disable-dom --without-iconv --without-openssl --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear --without-sqlite3 --disable-pdo --without-pdo-sqlite --disable-phar --disable-test


 checking for strcasestr... configure: error: in /home/xyz/PHP/php-7.0.1: 
  configure: error: cannot run test program while cross compiling 
  See config.log for more details

问我是否需要更精确。

【问题讨论】:

    标签: php linux gcc compilation


    【解决方案1】:

    ./configure 行的末尾,将--disable-test 替换为--disable-all 即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-11
      • 2020-10-04
      • 2023-01-30
      • 1970-01-01
      • 2021-02-10
      相关资源
      最近更新 更多