本帖最后由 sunsili 于 2023-6-23 19:30 编辑
【openwrt】openwrt编译libustream-openssl出错 解决
今天编译openwrt时,新包:libustream-openssl
【现象】
编译出错
Collected errors:
* check_data_file_clashes: Package libustream-openssl20201210 wants to install file /home/fan/openwrt_21.02.0_mt76x8_jotale_source/build_dir/target-mipsel_24kc_musl/root-ramips/lib/libustream-ssl.so
* opkg_install_cmd: Cannot install package libustream-openssl20201210.
* check_data_file_clashes: Package libustream-openssl20201210 wants to install file /home/fan/openwrt_21.02.0_mt76x8_jotale_source/build_dir/target-mipsel_24kc_musl/root-ramips/lib/libustream-ssl.so
But that file is already provided by package * libustream-wolfssl20201210
* opkg_install_cmd: Cannot install package luci-ssl-openssl.
make[2]: *** [package/Makefile:69: package/install] Error 255
make[2]: Leaving directory '/home/fan/openwrt_21.02.0_mt76x8_jotale_source'
make[1]: *** [package/Makefile:109: /home/fan/openwrt_21.02.0_mt76x8_jotale_source/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/fan/openwrt_21.02.0_mt76x8_jotale_source'
make: *** [/home/fan/openwrt_21.02.0_mt76x8_jotale_source/include/toplevel.mk:230: world] Error 2
关键信息
* check_data_file_clashes: Package libustream-openssl20201210 wants to install file
……
But that file is already provided by package * libustream-wolfssl20201210
安装libustream-openssl20201210 时,出错, 已经有安装了libustream-wolfssl20201210
【原因】
libustream-openssl、 libustream-wolfss两个库相冲突。
【解决方法】
make menuconfig
libustream-openssl、 libustream-wolfssl 二选一
我的选择是libustream-openssl,不选 libustream-wolfssl
【弯路】
刚开始为了编译通过我libustream-openssl、 libustream-wolfssl都不勾选
如果libustream-openssl、 libustream-wolfssl都不勾选的话,相关需依赖openssl应用将不能用,如opkg
opkg update
Downloading https://downloads.openwrt.org/re ... ackages/Packages.gz
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as th e ca-bundle and ca-certificates packages.
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/targets/rami ps/mt76x8/packages/Packages.gz
Downloading https://downloads.openwrt.org/re ... kc/base/Packages.gz
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as th e ca-bundle and ca-certificates packages.
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/mip sel_24kc/base/Packages.gz
Downloading https://downloads.openwrt.org/re ... kc/luci/Packages.gz
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as th e ca-bundle and ca-certificates packages.
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/mip sel_24kc/luci/Packages.gz
Downloading https://downloads.openwrt.org/re ... ackages/Packages.gz
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as th e ca-bundle and ca-certificates packages.
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/mip sel_24kc/packages/Packages.gz
Downloading https://downloads.openwrt.org/re ... routing/Packages.gz
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as th e ca-bundle and ca-certificates packages.
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.0/packages/mip sel_24kc/routing/Packages.gz
【原创】不易,转载请说明出处:【openwrt】openwrt内核编译libustream-openssl出错 解决-谷动谷力 (sunsili.com)
|
|