openwrt18.06.5编译错误,configure: error: python is missing or unusable


  • make V=s提示:
    checking whether to use python... yes
    checking for python... /home/luke/github/openwrt/staging_dir/host/bin/python
    checking for python2.7... no
    configure: error: python is missing or unusable
    make[5]: *** [Makefile:8764: configure-gdb] Error 1

    make[5]: Leaving directory '/home/luke/github/openwrt/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/gdb-8.0.1'
    make[4]: *** [Makefile:851: all] Error 2
    make[4]: Leaving directory '/home/luke/github/openwrt/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/gdb-8.0.1'
    make[3]: *** [Makefile:69: /home/luke/github/openwrt/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/gdb-8.0.1/.built] Error 2
    make[3]: Leaving directory '/home/luke/github/openwrt/toolchain/gdb'
    time: toolchain/gdb/compile#3.86#14.36#23.78
    make[2]: *** [toolchain/Makefile💯 toolchain/gdb/compile] Error 2
    make[2]: Leaving directory '/home/luke/github/openwrt'
    make[1]: *** [toolchain/Makefile:96: /home/luke/github/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.toolchain_compile] Error 2

    但是提示的目录下是有文件的:
    openwrt/staging_dir/host/bin# ll python*
    lrwxrwxrwx 1 root root 16 Oct 14 16:17 python -> /usr/bin/python2*
    lrwxrwxrwx 1 root root 16 Oct 10 17:58 python3 -> /usr/bin/python3*
    root@ub:/home/luke/github/openwrt/staging_dir/host/bin#

    怎么样解决这个错误,或者避免,不用python也行。