Collected errors: * check_data_file_clashes: Package libustream-openssl wants to install file /home/

OpenWRT编译错误,错误信息:

Collected errors:
* check_data_file_clashes: Package libustream-openssl wants to install file /home/lede/lede/source/build_dir/target-x86_64_musl-1.1.16/root-x86/lib/libustream-ssl.so
    But that file is already provided by package  * libustream-mbedtls
* opkg_install_cmd: Cannot install package libustream-openssl.
package/Makefile:60: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/lede/lede/source'
package/Makefile:102: recipe for target '/home/lede/lede/source/staging_dir/target-x86_64_musl-1.1.16/stamp/.package_install' failed
make[1]: *** [/home/lede/lede/source/staging_dir/target-x86_64_musl-1.1.16/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/lede/lede/source'
/home/lede/lede/source/include/toplevel.mk:197: recipe for target 'world' failed
make: *** [world] Error 2

 错误原因分析:

   libustream-openssllibustream-mbedtls这两个组件产生冲突,因此只能二选一。


解决方案: 

1. 首先,进入配置菜单:

make defconfig

2. 在Libraries选项里找到libustream-openssllibustream-mbedtls这两个组件,取消选中其中一个

Collected errors: * check_data_file_clashes: Package libustream-openssl wants to install file /home/_第1张图片

如图,因为我的libustream-mbedtls被其他组件依赖了,不能取消,因此我把libustream-openssl取消选中。

3. 继续编译:

make -j1 V=s

觉得有用,留下你的赞吧^_^

你可能感兴趣的:(嵌入式)