coolsnowwolf / lede

Lean's LEDE source
Other
29.55k stars 19.5k forks source link

大佬帮忙看看这种问题怎么解决 #8822

Closed GreatMichaelLee closed 2 years ago

GreatMichaelLee commented 2 years ago

好像这两个库 libboost_program_options.so.1.76.0 libboost_system.so.1.76.0的版本不对,

apt的源头装的就是1.71的,要1.76的我怎么弄啊?即便下了我放哪里?是放系统的/usr/lib还是编译目录的哪个目录下面?

builder@Build-Server:~/lede_x86$ sudo apt-cache madison "libboost-program-options-dev" libboost-program-options-dev | 1.71.0.0ubuntu2 | http://mirrors.aliyun.com/ubuntu focal/main amd64 Packages

-----编译日志输出------

make[3]: Entering directory '/home/builder/lede_x86/package/lean/openwrt-passwall/trojan-plus'
mkdir -p /home/builder/lede_x86/dl
SHELL= flock /home/builder/lede_x86/tmp/.trojan-plus-10.0.3.tar.xz.flock -c '   /home/builder/lede_x86/scripts/download.pl "/home/builder/lede_x86/dl" "trojan-plus-10.0.3.tar.xz" "2d37d09fe6d39d7981116ad387706f58f2b30b74a34e27fc5608f267dacc9208" "" || (  /home/builder/lede_x86/scripts/dl_github_archive.py --dl-dir="/home/builder/lede_x86/dl" --url="https://github.com/peter-tank/trojan-plus.git" --version="a6394cdd718669b0c7491493a78e61f6f0f899b3" --subdir="trojan-plus-10.0.3" --source="trojan-plus-10.0.3.tar.xz" --hash="2d37d09fe6d39d7981116ad387706f58f2b30b74a34e27fc5608f267dacc9208" || (    echo "Checking out files from the git repository..."; mkdir -p /home/builder/lede_x86/tmp/dl && cd /home/builder/lede_x86/tmp/dl && rm -rf trojan-plus-10.0.3 && [ \! -d trojan-plus-10.0.3 ] && git clone  https://github.com/peter-tank/trojan-plus.git trojan-plus-10.0.3 && (cd trojan-plus-10.0.3 && git checkout a6394cdd718669b0c7491493a78e61f6f0f899b3 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd trojan-plus-10.0.3 && git log -1 --format='\''@%ct'\''` && rm -rf trojan-plus-10.0.3/.git &&  tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c trojan-plus-10.0.3 |   xz -zc -7e > /home/builder/lede_x86/tmp/dl/trojan-plus-10.0.3.tar.xz && mv /home/builder/lede_x86/tmp/dl/trojan-plus-10.0.3.tar.xz /home/builder/lede_x86/dl/ && rm -rf trojan-plus-10.0.3; );  )    '
mkdir -p /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/stamp
SHELL= flock /home/builder/lede_x86/tmp/.root-copy.flock -c 'cp -fpR /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus/. /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/'
touch /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/stamp/.trojan-plus_installed
mkdir -p /home/builder/lede_x86/bin/targets/x86/64/packages /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/CONTROL /home/builder/lede_x86/staging_dir/target-x86_64_musl/pkginfo
install -d -m0755 /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/usr/sbin
install -m0755 /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-install/usr/bin/trojan /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/usr/sbin/trojan-plus
find /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package trojan-plus is missing dependencies for the following libraries:
libboost_program_options.so.1.76.0
libboost_system.so.1.76.0
make[3]: *** [Makefile:78: /home/builder/lede_x86/bin/packages/x86_64/base/trojan-plus_10.0.3-2_x86_64.ipk] Error 1
make[3]: Leaving directory '/home/builder/lede_x86/package/lean/openwrt-passwall/trojan-plus'
time: package/lean/openwrt-passwall/trojan-plus/compile#0.26#0.12#0.34
    ERROR: package/lean/openwrt-passwall/trojan-plus failed to build.
make[2]: *** [package/Makefile:116: package/lean/openwrt-passwall/trojan-plus/compile] Error 1
make[2]: Leaving directory '/home/builder/lede_x86'
make[1]: *** [package/Makefile:110: /home/builder/lede_x86/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/builder/lede_x86'
make: *** [/home/builder/lede_x86/include/toplevel.mk:230:world] 错误 2
builder@Build-Server:~/lede_x86$ 
GreatMichaelLee commented 2 years ago

好像这两个库 libboost_program_options.so.1.76.0 libboost_system.so.1.76.0的版本不对,

apt的源头装的就是1.71的,要1.76的我怎么弄啊?即便下了我放哪里?是放系统的/usr/lib还是编译目录的哪个目录下面?

builder@Build-Server:~/lede_x86$ sudo apt-cache madison "libboost-program-options-dev" libboost-program-options-dev | 1.71.0.0ubuntu2 | http://mirrors.aliyun.com/ubuntu focal/main amd64 Packages

-----编译日志输出------

make[3]: Entering directory '/home/builder/lede_x86/package/lean/openwrt-passwall/trojan-plus'
mkdir -p /home/builder/lede_x86/dl
SHELL= flock /home/builder/lede_x86/tmp/.trojan-plus-10.0.3.tar.xz.flock -c '     /home/builder/lede_x86/scripts/download.pl "/home/builder/lede_x86/dl" "trojan-plus-10.0.3.tar.xz" "2d37d09fe6d39d7981116ad387706f58f2b30b74a34e27fc5608f267dacc9208" "" || (  /home/builder/lede_x86/scripts/dl_github_archive.py --dl-dir="/home/builder/lede_x86/dl" --url="https://github.com/peter-tank/trojan-plus.git" --version="a6394cdd718669b0c7491493a78e61f6f0f899b3" --subdir="trojan-plus-10.0.3" --source="trojan-plus-10.0.3.tar.xz" --hash="2d37d09fe6d39d7981116ad387706f58f2b30b74a34e27fc5608f267dacc9208" || (    echo "Checking out files from the git repository..."; mkdir -p /home/builder/lede_x86/tmp/dl && cd /home/builder/lede_x86/tmp/dl && rm -rf trojan-plus-10.0.3 && [ \! -d trojan-plus-10.0.3 ] && git clone  https://github.com/peter-tank/trojan-plus.git trojan-plus-10.0.3 && (cd trojan-plus-10.0.3 && git checkout a6394cdd718669b0c7491493a78e61f6f0f899b3 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd trojan-plus-10.0.3 && git log -1 --format='\''@%ct'\''` && rm -rf trojan-plus-10.0.3/.git &&  tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c trojan-plus-10.0.3 |   xz -zc -7e > /home/builder/lede_x86/tmp/dl/trojan-plus-10.0.3.tar.xz && mv /home/builder/lede_x86/tmp/dl/trojan-plus-10.0.3.tar.xz /home/builder/lede_x86/dl/ && rm -rf trojan-plus-10.0.3; );  )    '
mkdir -p /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/stamp
SHELL= flock /home/builder/lede_x86/tmp/.root-copy.flock -c 'cp -fpR /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/.pkgdir/trojan-plus/. /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/'
touch /home/builder/lede_x86/staging_dir/target-x86_64_musl/root-x86/stamp/.trojan-plus_installed
mkdir -p /home/builder/lede_x86/bin/targets/x86/64/packages /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/CONTROL /home/builder/lede_x86/staging_dir/target-x86_64_musl/pkginfo
install -d -m0755 /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/usr/sbin
install -m0755 /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-install/usr/bin/trojan /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus/usr/sbin/trojan-plus
find /home/builder/lede_x86/build_dir/target-x86_64_musl/trojan-plus-10.0.3/ipkg-x86_64/trojan-plus -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package trojan-plus is missing dependencies for the following libraries:
libboost_program_options.so.1.76.0
libboost_system.so.1.76.0
make[3]: *** [Makefile:78: /home/builder/lede_x86/bin/packages/x86_64/base/trojan-plus_10.0.3-2_x86_64.ipk] Error 1
make[3]: Leaving directory '/home/builder/lede_x86/package/lean/openwrt-passwall/trojan-plus'
time: package/lean/openwrt-passwall/trojan-plus/compile#0.26#0.12#0.34
    ERROR: package/lean/openwrt-passwall/trojan-plus failed to build.
make[2]: *** [package/Makefile:116: package/lean/openwrt-passwall/trojan-plus/compile] Error 1
make[2]: Leaving directory '/home/builder/lede_x86'
make[1]: *** [package/Makefile:110: /home/builder/lede_x86/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/builder/lede_x86'
make: *** [/home/builder/lede_x86/include/toplevel.mk:230:world] 错误 2
builder@Build-Server:~/lede_x86$ 

重新安装这两个库解决了。