解决错误line 81: aclocal-1.14: command not found

在win10 的ubuntu编译openwrt 15.05时出现 line 81: aclocal-1.14: command not found错误

make -j1 -C /mnt/m/chaos_calmer/build_dir/host/patch-2.7.5
make[4]: Entering directory '/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5'
CDPATH="${ZSH_VERSION+.}:" && cd . && /usr/bin/env bash /mnt/m/chaos_calmer/build_dir/host/patch-2.7.5/build-aux/missing aclocal-1.14 -I m4
/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5/build-aux/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
Makefile:1181: recipe for target 'aclocal.m4' failed
make[4]: *** [aclocal.m4] Error 127
make[4]: Leaving directory '/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5'
Makefile:21: recipe for target '/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5/.built' failed
make[3]: *** [/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5/.built] Error 2
make[3]: Leaving directory '/mnt/m/chaos_calmer/tools/patch'
tools/Makefile:122: recipe for target 'tools/patch/compile' failed
make[2]: *** [tools/patch/compile] Error 2
make[2]: Leaving directory '/mnt/m/chaos_calmer'
tools/Makefile:121: recipe for target '/mnt/m/chaos_calmer/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy' failed
make[1]: *** [/mnt/m/chaos_calmer/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
make[1]: Leaving directory '/mnt/m/chaos_calmer'

解决方法:

进入对应patch-2.7.5文件夹,执行autoreconf -vfi

dawsen@KeVen:/mnt/m/chaos_calmer$ cd build_dir/host/patch-2.7.5/
dawsen@KeVen:/mnt/m/chaos_calmer/build_dir/host/patch-2.7.5$ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
main::scan_file() called too early to check prototype at /usr/bin/aclocal line 644.
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 4159.
autoreconf: Leaving directory `.'

你可能感兴趣的:(openwrt)