0

我正在尝试在CentOS 2.6.18上检查chromium的 android 版本 我正在遵循此链接中提供的官方说明

不幸的是,当我跑步时

gclient runhooks

我收到以下错误:

错误:命令 /usr/local/bin/python src/build/gyp_chromium 在 /root 中返回非零退出状态 1

这是完整的输出:

[root@centos build]# gclient runhooks
    Running depot tools as root is sad.

    ________ running '/usr/local/bin/python src/build/download_nacl_toolchains.py --no-arm-trusted --keep' in '/root'
    /root/src/native_client/toolchain/.tars/toolchain_linux_x86.tar.bz2 is already up to date.
    linux_x86: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_linux_x86.tgz is already up to date.
    linux_x86_newlib: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_pnacl_linux_x86.tgz is already up to date.
    pnacl_linux_x86: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_pnacl_translator.tgz is already up to date.
    pnacl_translator: already up to date.

    ________ running '/usr/local/bin/python src/build/linux/install-arm-sysroot.py --linux-only' in '/root'

    ________ running '/usr/local/bin/python src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only --arch=amd64' in '/root'

    ________ running '/usr/local/bin/python src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only --arch=i386' in '/root'

    ________ running '/usr/local/bin/python src/tools/clang/scripts/update.py --mac-only' in '/root'

    ________ running '/usr/local/bin/python src/build/win/setup_cygwin_mount.py --win-only' in '/root'

    ________ running '/usr/local/bin/python src/build/util/lastchange.py -o src/build/util/LASTCHANGE' in '/root'

    ________ running '/usr/local/bin/python src/build/util/lastchange.py -s src/third_party/WebKit -o src/build/util/LASTCHANGE.blink' in '/root'

    ________ running '/usr/local/bin/python src/build/gyp_chromium' in '/root'
    Updating projects from gyp files...
    gyp: Call to '../build/linux/python_arch.sh /usr/lib/libpython2.6.so.1.0' returned exit status 1. while trying to load /root/src/build/all.gyp

    Error: Command /usr/local/bin/python src/build/gyp_chromium returned non-zero exit status 1 in /root


如何解决此问题以继续构建步骤?

4

3 回答 3

0

我不得不编辑trunk/build 中的common.gypi 文件,将system_libdr% 更改为lib64,而不是lib。可能有某种方法可以将它传递给 gclient,但我不知道如何。在 Centos 64 位上,这些库位于 /usr/lib64 中。

于 2013-09-04T15:59:08.160 回答
0

您的系统上安装的 python 版本是什么?

我遇到了同样的问题,这仅仅是因为我的系统提供了 python 2.7 而不是 2.6。

如果这也是您的情况,您可以尝试再次运行它:

GYP_DEFINES=python_ver=2.7
于 2014-01-07T14:10:19.090 回答
0

您可以使用以下命令覆盖 system_libdir:

$ export GYP_DEFINES=system_libdir=lib64

我提交了一个Chromium 错误来解决这个问题。

于 2013-09-06T02:47:19.950 回答