anaconda环境使用爬坑

/usr/bin/ld: warning: libicui18n.so.58, needed by //home/b307/anaconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)问题

在anaconda虚拟环境下编译darknet出现报错,内容如下

/usr/bin/ld: warning: libicui18n.so.58, needed by //home/b307/anaconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicuuc.so.58, needed by //home/b307/anaconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicudata.so.58, needed by //home/b307/anaconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libzstd.so.1.3.7, needed by //home/b307/anaconda3/lib/libtiff.so.5, not found (try using -rpath or -rpath-link)
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to u_errorName_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_setMillis_58’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_freeCStream' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_getAlias_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_inDaylightTime_58' //home/b307/anaconda3/lib/libtiff.so.5: undefined reference toZSTD_maxCLevel’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to u_strToLower_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_getStandardName_58’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_getErrorName' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference tou_strToUpper_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucnv_setSubstChars_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_getMaxCharSize_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_getTimeZoneDisplayName_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_fromUnicode_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucnv_open_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_getDefaultName_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_getDefaultTimeZone_58' //home/b307/anaconda3/lib/libtiff.so.5: undefined reference toZSTD_createDStream’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_freeDStream' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_clone_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_getDSTSavings_58' //home/b307/anaconda3/lib/libtiff.so.5: undefined reference toZSTD_compressStream’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_decompressStream' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucol_strcoll_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucnv_close_58' //home/b307/anaconda3/lib/libtiff.so.5: undefined reference toZSTD_initCStream’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucnv_countAvailable_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_openCountryTimeZones_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucol_open_58' //home/b307/anaconda3/lib/libpng16.so.16: undefined reference toinflateValidate@ZLIB_1.2.9’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucnv_compareNames_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_close_58’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_createCStream' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_getAvailableName_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_openTimeZoneIDEnumeration_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_open_58’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_isError' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucol_setAttribute_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucal_openTimeZones_58' //home/b307/anaconda3/lib/libtiff.so.5: undefined reference toZSTD_endStream’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to uenum_close_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_countAliases_58’
//home/b307/anaconda3/lib/libtiff.so.5: undefined reference to ZSTD_initDStream' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucol_close_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to ucol_getSortKey_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucal_get_58’
//home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference to uenum_next_58' //home/b307/anaconda3/lib/libQt5Core.so.5: undefined reference toucnv_toUnicode_58’
collect2: error: ld returned 1 exit status
Makefile:77: recipe for target ‘darknet’ failed
make: *** [darknet] Error 1
应该是anaconda的库没有在系统环境中设置

sudo gedit ~/.bashrc

打开环境配置
加入export LD_LIBRARY_PATH=/home/b307/anaconda3/lib/:$LD_LIBRARY_PATH
lib路径根据实际情况修改
PS:特此记录,防止下次遗忘

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值