1. 程式人生 > 實用技巧 >openWRT編譯報錯集錦

openWRT編譯報錯集錦

需網路穩定,可正常上梯子。

/*ubuntu18編譯報錯:*/

autoreconf: running: /home/jack/openwrt-sdk/staging_dir/host/bin/automake --add-missing
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/jack/openwrt-sdk/staging_dir/host/bin/automake line 4160.
autoreconf: /home/jack/openwrt-sdk/staging_dir/host/bin/automake failed with exit status: 255
(cd /home/jack/openwrt-sdk/build_dir/host/mklibs-0.1.35/; if [ -x configure ]; then cp -fpR /home/jack/openwrt-sdk/scripts/config.{guess,sub} /home/jack/openwrt-sdk/build_dir/host/mklibs-0.1.35// && /bin/bash ./configure CC="gcc" CFLAGS="-O2 -I/home/jack/openwrt-sdk/staging_dir/host/include -I/home/jack/openwrt-sdk/tools/mklibs/include" CPPFLAGS="-I/home/jack/openwrt-sdk/staging_dir/host/include" LDFLAGS="-L/home/jack/openwrt-sdk/staging_dir/host/lib " SHELL="/bin/bash" --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/jack/openwrt-sdk/staging_dir/host --exec-prefix=/home/jack/openwrt-sdk/staging_dir/host --sysconfdir=/home/jack/openwrt-sdk/staging_dir/host/etc --localstatedir=/home/jack/openwrt-sdk/staging_dir/host/var --sbindir=/home/jack/openwrt-sdk/staging_dir/host/bin ; fi )
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." Makefile:35: recipe for target '/home/jack/openwrt-sdk/build_dir/host/mklibs-0.1.35/.configured' failed make[3]: *** [/home/jack/openwrt-sdk/build_dir/host/mklibs-0.1.35/.configured] Error 1 make[3]: Leaving directory '/home/jack/openwrt-sdk/tools/mklibs
'

/*是staging_dir/host/bin/automake檔案串的4160行報錯,因為新版的perl不在支援左大括號的使用,開啟這個檔案刪掉4160行的大括號{},問題解決。 */