lede icon indicating copy to clipboard operation
lede copied to clipboard

编译报错 cannot load such file -- optparse

Open swq93 opened this issue 2 years ago • 2 comments

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • 没有类似的issue

2. 详细叙述

(1) 具体问题

编译报错

(2) 路由器型号和固件版本

x86软路由

(3) 详细日志

fstack-protector-strong -pie SOLIBS = -lz -lpthread -lrt -lrt -ldl -lcrypt -lm LANG = C LC_ALL = C LC_CTYPE = MFLAGS = -w -j1 gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

./tool/file2lastrev.rb:6:in require': cannot load such file -- optparse (LoadError) from ./tool/file2lastrev.rb:6:in

' make[4]: *** [uncommon.mk:1191: revision.tmp] Error 1 make[4]: Leaving directory '/mnt/wsl/PHYSICALDRIVE1p1/lede/build_dir/hostpkg/ruby-3.1.2' make[3]: *** [Makefile:1156: /mnt/wsl/PHYSICALDRIVE1p1/lede/build_dir/hostpkg/ruby-3.1.2/.built] Error 2 make[3]: Leaving directory '/mnt/wsl/PHYSICALDRIVE1p1/lede/feeds/packages/lang/ruby' time: package/feeds/packages/ruby/host-compile#0.30#0.10#0.32 ERROR: package/feeds/packages/ruby [host] failed to build. make[2]: *** [package/Makefile:114: package/feeds/packages/ruby/host/compile] Error 1 make[2]: Leaving directory '/mnt/wsl/PHYSICALDRIVE1p1/lede' make[1]: *** [package/Makefile:110: /mnt/wsl/PHYSICALDRIVE1p1/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/mnt/wsl/PHYSICALDRIVE1p1/lede' make: *** [/mnt/wsl/PHYSICALDRIVE1p1/lede/include/toplevel.mk:230: world] Error 2

swq93 avatar Jun 07 '22 04:06 swq93

没遇到,如果是具体编译某个包有问题,请贴出包名

WYC-2020 avatar Jun 08 '22 08:06 WYC-2020

我也一样哎

jinjin327 avatar Jun 10 '22 05:06 jinjin327

rm -rf ./staging_dir/hostpkg/lib/ruby
rm -rf ./staging_dir/hostpkg/include/ruby-*
rm staging_dir/hostpkg/lib/pkgconfig/ruby-*
rm staging_dir/hostpkg/bin/ruby

make package/ruby/{clean,compile} V=s -j8

aiamadeus avatar Nov 18 '22 11:11 aiamadeus